diff options
author | Eric M <itsjusteza@gmail.com> | 2020-09-16 10:44:38 +1000 |
---|---|---|
committer | Eric M <itsjusteza@gmail.com> | 2020-11-23 21:14:25 +1000 |
commit | 9d7d20a978fccf7b2871dc388f16b87b4b686144 (patch) | |
tree | 0bb7805890d604486a86e3fe2f42ec55f705bc21 /scene | |
parent | 18023cc3ede6fd84842db77019085c383e807016 (diff) |
Added accept_event() calls for SceneTreeDock and BaseButton
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/base_button.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index 1a19c75d27..84e9fc187c 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -327,6 +327,7 @@ Ref<Shortcut> BaseButton::get_shortcut() const { void BaseButton::_unhandled_input(Ref<InputEvent> p_event) { if (!is_disabled() && is_visible_in_tree() && !p_event->is_echo() && shortcut.is_valid() && shortcut->is_shortcut(p_event)) { on_action_event(p_event); + accept_event(); } } |