From d34bfe89fdc7ac029e2ea1940c32d92f6172e6c5 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 2 Mar 2026 18:50:45 +0100 Subject: [PATCH] Use open_search shortcut instead of hard-coded events --- editor/asset_library/asset_library_editor_plugin.cpp | 2 +- editor/settings/editor_settings_dialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/asset_library/asset_library_editor_plugin.cpp b/editor/asset_library/asset_library_editor_plugin.cpp index 471e780fd3..f7fb4e1c41 100644 --- a/editor/asset_library/asset_library_editor_plugin.cpp +++ b/editor/asset_library/asset_library_editor_plugin.cpp @@ -788,7 +788,7 @@ void EditorAssetLibrary::shortcut_input(const Ref &p_event) { const Ref key = p_event; if (key.is_valid() && key->is_pressed()) { - if (key->is_match(InputEventKey::create_reference(KeyModifierMask::CMD_OR_CTRL | Key::F)) && is_visible_in_tree()) { + if (ED_IS_SHORTCUT("editor/open_search", p_event) && is_visible_in_tree()) { filter->grab_focus(); filter->select_all(); accept_event(); diff --git a/editor/settings/editor_settings_dialog.cpp b/editor/settings/editor_settings_dialog.cpp index 0858e40706..a16893603b 100644 --- a/editor/settings/editor_settings_dialog.cpp +++ b/editor/settings/editor_settings_dialog.cpp @@ -322,7 +322,7 @@ void EditorSettingsDialog::shortcut_input(const Ref &p_event) { } } - if (k->is_match(InputEventKey::create_reference(KeyModifierMask::CMD_OR_CTRL | Key::F))) { + if (ED_IS_SHORTCUT("editor/open_search", p_event)) { _focus_current_search_box(); handled = true; }