From a3ed9e6f2cfb539418b06d75fc96352634b81352 Mon Sep 17 00:00:00 2001 From: Eric M Date: Sun, 25 Sep 2022 00:32:53 +1000 Subject: Move Shortcut Context to Control and ensure that `shortcut_input` adheres to contexts. Also ensure that controls with no context are only triggered AFTER nodes which do have a context. --- scene/gui/menu_button.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'scene/gui/menu_button.cpp') diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp index 78aeab9457..786f23873e 100644 --- a/scene/gui/menu_button.cpp +++ b/scene/gui/menu_button.cpp @@ -36,10 +36,6 @@ void MenuButton::shortcut_input(const Ref &p_event) { ERR_FAIL_COND(p_event.is_null()); - if (!_is_focus_owner_in_shortcut_context()) { - return; - } - if (disable_shortcuts) { return; } -- cgit v1.2.3