mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 20:55:35 +03:00
Pong: Alt shortcuts in top-level menus
This commit is contained in:
parent
8529053ffe
commit
cfe7f6fe50
Notes:
sideshowbarker
2024-07-18 20:22:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/cfe7f6fe50e
@ -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…
Reference in New Issue
Block a user