Merge pull request #65290 from requizm/fix/65081/cannot_set_escape

Disabled "Escape" button when closing the shortcut window
This commit is contained in:
Rémi Verschelde 2022-09-25 11:06:18 +02:00
commit 919d8b3711
1 changed files with 1 additions and 0 deletions

View File

@ -772,6 +772,7 @@ EditorSettingsDialog::EditorSettingsDialog() {
shortcut_editor = memnew(InputEventConfigurationDialog);
shortcut_editor->connect("confirmed", callable_mp(this, &EditorSettingsDialog::_event_config_confirmed));
shortcut_editor->set_allowed_input_types(InputEventConfigurationDialog::InputType::INPUT_KEY);
shortcut_editor->set_close_on_escape(false);
add_child(shortcut_editor);
set_hide_on_ok(true);