From f9d1e03018bc9fa7d32fd99cb21d5bf58140c265 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sat, 16 Jul 2016 14:36:55 +0200 Subject: [PATCH] MenuButton: Avoid event propagation if handled as hotkey --- scene/gui/menu_button.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp index 28d67287d5d..39a8ad04737 100644 --- a/scene/gui/menu_button.cpp +++ b/scene/gui/menu_button.cpp @@ -39,7 +39,8 @@ void MenuButton::_unhandled_key_input(InputEvent p_event) { return; - int item = popup->activate_item_by_event(p_event); + if (popup->activate_item_by_accelerator(code)) + accept_event(); } }