summaryrefslogtreecommitdiff
path: root/Userland/Applications/Piano
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-12 18:09:42 +0100
committerLinus Groh <mail@linusgroh.de>2021-05-12 18:09:42 +0100
commit91eda222087048fef131a1bc39bcda947bce2288 (patch)
tree0607a7dd78ae8e36600ef397bff639040161ee2b /Userland/Applications/Piano
parentf2154bca179e5242390e8b3230607360bdaa2949 (diff)
downloadserenity-91eda222087048fef131a1bc39bcda947bce2288.zip
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.
Diffstat (limited to 'Userland/Applications/Piano')
-rw-r--r--Userland/Applications/Piano/main.cpp6
1 files changed, 3 insertions, 3 deletions
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));