summaryrefslogtreecommitdiffstats
path: root/scene/gui/base_button.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-13 15:24:39 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-13 15:24:39 +0200
commit2ffb6096584fc8a91e7b00da98f18c78ad040505 (patch)
tree85f6ba49bed141199a79bb3da7327a1a08bb80c2 /scene/gui/base_button.cpp
parent17db8be33cc61ff61d06ea94edaa98cbac14ae98 (diff)
parentb322b3d649ba586dd111ae62b91ded4cb49d9fdf (diff)
downloadredot-engine-2ffb6096584fc8a91e7b00da98f18c78ad040505.tar.gz
Merge pull request #66337 from EricEzaM/sprite-frames
Ensure control built-in shortcuts are matched exactly & add shortcuts for SpriteFrames editor
Diffstat (limited to 'scene/gui/base_button.cpp')
-rw-r--r--scene/gui/base_button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp
index d5eaa4f7a5..552345e4fe 100644
--- a/scene/gui/base_button.cpp
+++ b/scene/gui/base_button.cpp
@@ -60,7 +60,7 @@ void BaseButton::gui_input(const Ref<InputEvent> &p_event) {
}
Ref<InputEventMouseButton> mouse_button = p_event;
- bool ui_accept = p_event->is_action("ui_accept") && !p_event->is_echo();
+ bool ui_accept = p_event->is_action("ui_accept", true) && !p_event->is_echo();
bool button_masked = mouse_button.is_valid() && (mouse_button_to_mask(mouse_button->get_button_index()) & button_mask) != MouseButton::NONE;
if (button_masked || ui_accept) {