mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
WindowServer: Also keep menus open when activated via Ctrl + return key
I see no reason to limit this awesome feature to mouse clicks. :^)
This commit is contained in:
parent
0198ecca21
commit
2fde87e67d
Notes:
sideshowbarker
2024-07-18 21:02:28 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/2fde87e67df Pull-request: https://github.com/SerenityOS/serenity/pull/5970
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ void MenuManager::event(Core::Event& event)
|
|||
if (hovered_item->is_submenu())
|
||||
m_current_menu->descend_into_submenu_at_hovered_item();
|
||||
else
|
||||
m_current_menu->open_hovered_item(false);
|
||||
m_current_menu->open_hovered_item(key_event.modifiers() & KeyModifier::Mod_Ctrl);
|
||||
return;
|
||||
}
|
||||
m_current_menu->dispatch_event(event);
|
||||
|
|
Loading…
Reference in a new issue