mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
LibGUI: Actually use the Action alternate shortcut
This adds the actual functionality to Window and Application.
This commit is contained in:
parent
21a193ed5a
commit
3e6a5af32b
3 changed files with 4 additions and 2 deletions
|
@ -982,7 +982,7 @@ Action* Window::action_for_key_event(const KeyEvent& event)
|
|||
Shortcut shortcut(event.modifiers(), (KeyCode)event.key());
|
||||
Action* found_action = nullptr;
|
||||
for_each_child_of_type<Action>([&](auto& action) {
|
||||
if (action.shortcut() == shortcut) {
|
||||
if (action.shortcut() == shortcut || action.alternate_shortcut() == shortcut) {
|
||||
found_action = &action;
|
||||
return IterationDecision::Break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue