1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

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