diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 32a64f64e87..bca060a6457 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -569,7 +569,7 @@ void EditorProperty::_gui_input(const Ref &p_event) { } void EditorProperty::_unhandled_key_input(const Ref &p_event) { - if (!selected) { + if (!selected || !is_visible_in_tree()) { return; }