diff --git a/editor/limbo_ai_editor_plugin.cpp b/editor/limbo_ai_editor_plugin.cpp index 5b27ec0..39f9275 100644 --- a/editor/limbo_ai_editor_plugin.cpp +++ b/editor/limbo_ai_editor_plugin.cpp @@ -983,7 +983,7 @@ void LimboAIEditor::shortcut_input(const Ref &p_event) { // * Local shortcuts. - if (!(has_focus() || is_ancestor_of(get_viewport()->gui_get_focus_owner()))) { + if (!(has_focus() || get_viewport()->gui_get_focus_owner() == nullptr || is_ancestor_of(get_viewport()->gui_get_focus_owner()))) { return; }