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:
Linus Groh 2021-03-27 11:16:19 +01:00 committed by Andreas Kling
parent 0198ecca21
commit 2fde87e67d
Notes: sideshowbarker 2024-07-18 21:02:28 +09:00

View file

@ -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);