summaryrefslogtreecommitdiffstats
path: root/editor/input_event_configuration_dialog.cpp
diff options
context:
space:
mode:
authorEric M <itsjusteza@gmail.com>2022-10-14 16:58:36 +1000
committerEric M <itsjusteza@gmail.com>2022-10-14 18:26:07 +1000
commit8678e4d34fd3c11498d4a5034b556542e18a0b35 (patch)
tree1fb49d6be0595d5058363f58a68e86b16a7c5b92 /editor/input_event_configuration_dialog.cpp
parentfd4572cc45506f901e68a2cb485f44ffd01b937e (diff)
downloadredot-engine-8678e4d34fd3c11498d4a5034b556542e18a0b35.tar.gz
Focus EventListener when InputEventConfigurationDialog is opened.
Diffstat (limited to 'editor/input_event_configuration_dialog.cpp')
-rw-r--r--editor/input_event_configuration_dialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/input_event_configuration_dialog.cpp b/editor/input_event_configuration_dialog.cpp
index ed9a5898fb..c577c61db7 100644
--- a/editor/input_event_configuration_dialog.cpp
+++ b/editor/input_event_configuration_dialog.cpp
@@ -533,6 +533,10 @@ String InputEventConfigurationDialog::_get_device_string(int p_device) const {
void InputEventConfigurationDialog::_notification(int p_what) {
switch (p_what) {
+ case NOTIFICATION_VISIBILITY_CHANGED: {
+ event_listener->grab_focus();
+ } break;
+
case NOTIFICATION_ENTER_TREE:
case NOTIFICATION_THEME_CHANGED: {
input_list_search->set_right_icon(input_list_search->get_theme_icon(SNAME("Search"), SNAME("EditorIcons")));