mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:27:44 +00: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:
parent
0198ecca21
commit
2fde87e67d
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ void MenuManager::event(Core::Event& event)
|
||||||
if (hovered_item->is_submenu())
|
if (hovered_item->is_submenu())
|
||||||
m_current_menu->descend_into_submenu_at_hovered_item();
|
m_current_menu->descend_into_submenu_at_hovered_item();
|
||||||
else
|
else
|
||||||
m_current_menu->open_hovered_item(false);
|
m_current_menu->open_hovered_item(key_event.modifiers() & KeyModifier::Mod_Ctrl);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_current_menu->dispatch_event(event);
|
m_current_menu->dispatch_event(event);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue