Merge pull request #4848 from neikeq/menu-accept-event

MenuButton: Avoid key event propagation if handled as hotkey
This commit is contained in:
Rémi Verschelde 2016-07-16 14:45:08 +02:00 committed by GitHub
commit e2ad08c56b
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ void MenuButton::_unhandled_key_input(InputEvent p_event) {
return; return;
int item = popup->activate_item_by_event(p_event); if (popup->activate_item_by_accelerator(code))
accept_event();
} }
} }