diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-13 15:24:30 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-13 15:24:30 +0200 |
commit | 17db8be33cc61ff61d06ea94edaa98cbac14ae98 (patch) | |
tree | afd7c7f792f979dc353becfdbc4656ce275bf4dd /scene/gui/menu_button.cpp | |
parent | 2b9ba52376d65ddfaf5c464bfed56b293fd02a5e (diff) | |
parent | a3ed9e6f2cfb539418b06d75fc96352634b81352 (diff) |
Merge pull request #66357 from EricEzaM/shortcut-context-on-node
Move Shortcut Context to control and fix `shortcut_input` with `shortcut_context`
Diffstat (limited to 'scene/gui/menu_button.cpp')
-rw-r--r-- | scene/gui/menu_button.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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<InputEvent> &p_event) { ERR_FAIL_COND(p_event.is_null()); - if (!_is_focus_owner_in_shortcut_context()) { - return; - } - if (disable_shortcuts) { return; } |