diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-05 23:12:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-05 23:15:43 +0200 |
commit | 0652c2e4cc89893ebd4cf07d278e363f94e3bb44 (patch) | |
tree | d670c0327422ba069bc823ca9b581d68186bdd7a | |
parent | 1d46e8d50cb58f6645e4356a22e499bbf959bdd5 (diff) | |
download | serenity-0652c2e4cc89893ebd4cf07d278e363f94e3bb44.zip |
FileManager: Add Alt shortcuts for top-level menus
-rw-r--r-- | Userland/Applications/FileManager/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp index b1c3909d87..1ccb28985c 100644 --- a/Userland/Applications/FileManager/main.cpp +++ b/Userland/Applications/FileManager/main.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -753,7 +753,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio auto menubar = GUI::MenuBar::construct(); - auto& app_menu = menubar->add_menu("File"); + auto& app_menu = menubar->add_menu("&File"); app_menu.add_action(mkdir_action); app_menu.add_action(touch_action); app_menu.add_action(copy_action); @@ -779,7 +779,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio directory_view.set_should_show_dotfiles(show_dotfiles); action_show_dotfiles->set_checked(show_dotfiles); - auto& view_menu = menubar->add_menu("View"); + auto& view_menu = menubar->add_menu("&View"); auto& layout_menu = view_menu.add_submenu("Layout"); layout_menu.add_action(*layout_toolbar_action); layout_menu.add_action(*layout_location_action); @@ -802,14 +802,14 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio location_textbox.set_focus(true); }); - auto& go_menu = menubar->add_menu("Go"); + auto& go_menu = menubar->add_menu("&Go"); go_menu.add_action(go_back_action); go_menu.add_action(go_forward_action); go_menu.add_action(open_parent_directory_action); go_menu.add_action(go_home_action); go_menu.add_action(go_to_location_action); - auto& help_menu = menubar->add_menu("Help"); + auto& help_menu = menubar->add_menu("&Help"); help_menu.add_action(GUI::CommonActions::make_about_action("File Manager", GUI::Icon::default_icon("app-file-manager"), window)); window->set_menubar(menubar); |