Skip to content

Commit 80b1cbb

Browse files
committed
Merge pull request godotengine#96582 from Giganzo/add-sun-and-env-with-shift
Fix shift clicking on Add Sun/Environment to Scene buttons
2 parents 721852b + 1b6af3a commit 80b1cbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/plugins/node_3d_editor_plugin.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7865,6 +7865,9 @@ void Node3DEditor::_sun_environ_settings_pressed() {
78657865
sun_environ_popup->set_position(pos - Vector2(sun_environ_popup->get_contents_minimum_size().width / 2, 0));
78667866
sun_environ_popup->reset_size();
78677867
sun_environ_popup->popup();
7868+
// Grabbing the focus is required for Shift modifier checking to be functional
7869+
// (when the Add sun/environment buttons are pressed).
7870+
sun_environ_popup->grab_focus();
78687871
}
78697872

78707873
void Node3DEditor::_add_sun_to_scene(bool p_already_added_environment) {

0 commit comments

Comments
 (0)