mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
FileManager: Add Alt shortcuts for top-level menus
This commit is contained in:
parent
1d46e8d50c
commit
0652c2e4cc
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue