summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/menu_button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp
index 39a8ad0473..d6e084765d 100644
--- a/scene/gui/menu_button.cpp
+++ b/scene/gui/menu_button.cpp
@@ -39,7 +39,7 @@ void MenuButton::_unhandled_key_input(InputEvent p_event) {
return;
- if (popup->activate_item_by_accelerator(code))
+ if (popup->activate_item_by_event(p_event))
accept_event();
}
}