mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +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
|
@ -113,11 +113,13 @@ void Application::quit(int exit_code)
|
|||
void Application::register_global_shortcut_action(Badge<Action>, Action& action)
|
||||
{
|
||||
m_global_shortcut_actions.set(action.shortcut(), &action);
|
||||
m_global_shortcut_actions.set(action.alternate_shortcut(), &action);
|
||||
}
|
||||
|
||||
void Application::unregister_global_shortcut_action(Badge<Action>, Action& action)
|
||||
{
|
||||
m_global_shortcut_actions.remove(action.shortcut());
|
||||
m_global_shortcut_actions.remove(action.alternate_shortcut());
|
||||
}
|
||||
|
||||
Action* Application::action_for_key_event(const KeyEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue