MenuButton: Avoid event propagation if handled as hotkey
This commit is contained in:
parent
24d86e33a6
commit
f9d1e03018
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue