From 2fde87e67df192acd24c846758aafd18e6d73873 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 27 Mar 2021 11:16:19 +0100 Subject: WindowServer: Also keep menus open when activated via Ctrl + return key I see no reason to limit this awesome feature to mouse clicks. :^) --- Userland/Services/WindowServer/MenuManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/WindowServer/MenuManager.cpp b/Userland/Services/WindowServer/MenuManager.cpp index f48e839211..78b7a7239c 100644 --- a/Userland/Services/WindowServer/MenuManager.cpp +++ b/Userland/Services/WindowServer/MenuManager.cpp @@ -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); -- cgit v1.2.3