mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
WindowServer: Select first item when opening a menu via Alt shortcut
To make keyboard navigation a little nicer, select the first/top menu item right away.
This commit is contained in:
parent
357f288fef
commit
1f4dc670d4
1 changed files with 2 additions and 0 deletions
|
@ -492,6 +492,8 @@ void Window::handle_keydown_event(const KeyEvent& event)
|
|||
});
|
||||
if (menu_to_open) {
|
||||
frame().open_menubar_menu(*menu_to_open);
|
||||
if (!menu_to_open->is_empty())
|
||||
menu_to_open->set_hovered_item(0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue