summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-03-27 11:16:19 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-27 11:33:41 +0100
commit2fde87e67df192acd24c846758aafd18e6d73873 (patch)
tree7b65819ca45775c42c5d49a3ff88a0a29dbd2e87
parent0198ecca21a1d0b4b71708a0fa08329bd13e4946 (diff)
downloadserenity-2fde87e67df192acd24c846758aafd18e6d73873.zip
WindowServer: Also keep menus open when activated via Ctrl + return key
I see no reason to limit this awesome feature to mouse clicks. :^)
-rw-r--r--Userland/Services/WindowServer/MenuManager.cpp2
1 files changed, 1 insertions, 1 deletions
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);