mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02: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:
committed by
Andreas Kling
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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user