Merge pull request #4848 from neikeq/menu-accept-event
MenuButton: Avoid key event propagation if handled as hotkey
This commit is contained in:
commit
e2ad08c56b
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue