MenuButton: Avoid event propagation if handled as hotkey

This commit is contained in:
Ignacio Etcheverry 2016-07-16 14:36:55 +02:00
parent 24d86e33a6
commit f9d1e03018

View file

@ -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();
}
}