Pong: Alt shortcuts in top-level menus

This commit is contained in:
Andreas Kling 2021-04-13 18:56:29 +02:00
parent 8529053ffe
commit cfe7f6fe50
Notes: sideshowbarker 2024-07-18 20:22:07 +09:00

View File

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