diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-09-11 00:26:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-11 00:26:23 +0200 |
commit | c658fa8b77eb701ddb504cba14fe2c966b7bb105 (patch) | |
tree | dede12f2a81fa53d9c81c93b568213e8d7385e1b /editor/plugins/asset_library_editor_plugin.cpp | |
parent | b52305351d417c47ce019529fb511ecfd72c07e4 (diff) | |
parent | f6adf07ffab584df992d4d779e008acecfce3e92 (diff) |
Merge pull request #65631 from bruvzg/fix_ctrl_f
Fix Ctrl/Cmd+F always processed by the asset library, instead of script editor / help.
Diffstat (limited to 'editor/plugins/asset_library_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/asset_library_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index 436113093f..3c9486cdaa 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -648,7 +648,7 @@ void EditorAssetLibrary::shortcut_input(const Ref<InputEvent> &p_event) { const Ref<InputEventKey> key = p_event; if (key.is_valid() && key->is_pressed()) { - if (key->is_match(InputEventKey::create_reference(KeyModifierMask::CMD_OR_CTRL | Key::F))) { + if (key->is_match(InputEventKey::create_reference(KeyModifierMask::CMD_OR_CTRL | Key::F)) && is_visible_in_tree()) { filter->grab_focus(); filter->select_all(); accept_event(); |