From 91eda222087048fef131a1bc39bcda947bce2288 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 12 May 2021 18:09:42 +0100 Subject: Everywhere: Add Alt shortcuts to remaining top-level menus Not sure why some menus did have one and others didn't, even in the same application - now they all do. :^) I added character shortcuts to some menu actions as well. --- Userland/Applications/Piano/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Userland/Applications/Piano') diff --git a/Userland/Applications/Piano/main.cpp b/Userland/Applications/Piano/main.cpp index b29a038765..a584d2331f 100644 --- a/Userland/Applications/Piano/main.cpp +++ b/Userland/Applications/Piano/main.cpp @@ -91,7 +91,7 @@ int main(int argc, char** argv) auto menubar = GUI::Menubar::construct(); - auto& file_menu = menubar->add_menu("File"); + auto& file_menu = menubar->add_menu("&File"); file_menu.add_action(GUI::Action::create("Export", { Mod_Ctrl, Key_E }, [&](const GUI::Action&) { save_path = GUI::FilePicker::get_save_filepath(window, "Untitled", "wav"); if (!save_path.has_value()) @@ -110,10 +110,10 @@ int main(int argc, char** argv) return; })); - auto& edit_menu = menubar->add_menu("Edit"); + auto& edit_menu = menubar->add_menu("&Edit"); main_widget.add_actions(edit_menu); - auto& help_menu = menubar->add_menu("Help"); + auto& help_menu = menubar->add_menu("&Help"); help_menu.add_action(GUI::CommonActions::make_about_action("Piano", app_icon, window)); window->set_menubar(move(menubar)); -- cgit v1.2.3