mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
Pong: Alt shortcuts in top-level menus
This commit is contained in:
parent
8529053ffe
commit
cfe7f6fe50
1 changed files with 2 additions and 2 deletions
|
@ -76,12 +76,12 @@ int main(int argc, char** argv)
|
|||
|
||||
auto menubar = GUI::Menubar::construct();
|
||||
|
||||
auto& app_menu = menubar->add_menu("Game");
|
||||
auto& app_menu = menubar->add_menu("&Game");
|
||||
app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) {
|
||||
GUI::Application::the()->quit();
|
||||
}));
|
||||
|
||||
auto& help_menu = menubar->add_menu("Help");
|
||||
auto& help_menu = menubar->add_menu("&Help");
|
||||
help_menu.add_action(GUI::CommonActions::make_about_action("Pong", app_icon, window));
|
||||
|
||||
window->set_menubar(move(menubar));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue