mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
WindowServer: Keep menu open when activating a menu item with Ctrl held
This makes it easy to "try out" different options (like system themes!) in a menu without having to re-open the menu over and over. :^)
This commit is contained in:
parent
b31b904ad0
commit
ecb0ae9c33
3 changed files with 12 additions and 10 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();
|
||||
m_current_menu->open_hovered_item(false);
|
||||
return;
|
||||
}
|
||||
m_current_menu->dispatch_event(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue