From a0a019a99826d7afbe701a3157324e8ccc1edf80 Mon Sep 17 00:00:00 2001 From: Bhuvan Vemula Date: Sat, 29 May 2021 18:58:16 +0530 Subject: Added EditorCommandPalette --- scene/main/viewport.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scene/main') diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 8e7182df46..185936a3c6 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -3099,6 +3099,7 @@ void Viewport::input(const Ref &p_event, bool p_local_coords) { void Viewport::unhandled_input(const Ref &p_event, bool p_local_coords) { ERR_FAIL_COND(p_event.is_null()); ERR_FAIL_COND(!is_inside_tree()); + local_input_handled = false; if (disable_input || !_can_consume_input_events()) { return; @@ -3118,8 +3119,8 @@ void Viewport::unhandled_input(const Ref &p_event, bool p_local_coor // Unhandled Input get_tree()->_call_input_pause(unhandled_input_group, "_unhandled_input", ev, this); - // Unhandled key Input - used for performance reasons - This is called a lot less then _unhandled_input since it ignores MouseMotion, etc - if (!is_input_handled() && Object::cast_to(*ev) != nullptr) { + // Unhandled key Input - used for performance reasons - This is called a lot less than _unhandled_input since it ignores MouseMotion, etc + if (!is_input_handled() && (Object::cast_to(*ev) != nullptr || Object::cast_to(*ev) != nullptr)) { get_tree()->_call_input_pause(unhandled_key_input_group, "_unhandled_key_input", ev, this); } -- cgit v1.2.3