mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user