1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add option to allow echo events in menu shortcuts

This commit is contained in:
Tomasz Chabora
2020-02-23 22:23:34 +01:00
committed by kobewi
parent 90f90cbcb0
commit 3dd881b4e4
8 changed files with 86 additions and 19 deletions

View File

@@ -40,7 +40,7 @@ void MenuButton::shortcut_input(const Ref<InputEvent> &p_event) {
return;
}
if (p_event->is_pressed() && !p_event->is_echo() && !is_disabled() && is_visible_in_tree() && popup->activate_item_by_event(p_event, false)) {
if (p_event->is_pressed() && !is_disabled() && is_visible_in_tree() && popup->activate_item_by_event(p_event, false)) {
accept_event();
return;
}