diff options
author | Robert Yevdokimov <robert.yevdokimov@autStand.com> | 2023-12-30 15:33:37 -0500 |
---|---|---|
committer | Robert Yevdokimov <robert.yevdokimov@autStand.com> | 2024-01-05 19:24:55 -0500 |
commit | eb565780e792237cc2d515f8f9b996b586d2dfeb (patch) | |
tree | f2f9285aa3d60429f0ad3615b9f6da0327e8d033 /editor/editor_settings_dialog.cpp | |
parent | 13a0d6e9b253654f5cc2a44f3d0b3cae10440443 (diff) | |
download | redot-engine-eb565780e792237cc2d515f8f9b996b586d2dfeb.tar.gz |
Prevent escape key from closing Editor Settings window when filtering for shorcuts
Diffstat (limited to 'editor/editor_settings_dialog.cpp')
-rw-r--r-- | editor/editor_settings_dialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_settings_dialog.cpp b/editor/editor_settings_dialog.cpp index a5e70c5b6c..8bb124eed1 100644 --- a/editor/editor_settings_dialog.cpp +++ b/editor/editor_settings_dialog.cpp @@ -772,6 +772,8 @@ EditorSettingsDialog::EditorSettingsDialog() { shortcut_search_by_event->set_stretch_ratio(0.75); shortcut_search_by_event->set_allowed_input_types(INPUT_KEY); shortcut_search_by_event->connect("event_changed", callable_mp(this, &EditorSettingsDialog::_filter_shortcuts_by_event)); + shortcut_search_by_event->connect("focus_entered", callable_mp((AcceptDialog *)this, &AcceptDialog::set_close_on_escape).bind(false)); + shortcut_search_by_event->connect("focus_exited", callable_mp((AcceptDialog *)this, &AcceptDialog::set_close_on_escape).bind(true)); top_hbox->add_child(shortcut_search_by_event); Button *clear_all_search = memnew(Button); |