Disabled "Escape" button when closing the shortcut window

This commit is contained in:
requizm 2022-09-03 17:46:45 +03:00
parent b8977ca333
commit 1c2464a557

View file

@ -763,6 +763,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);