diff options
author | electrikmilk <brandonjordan124@gmail.com> | 2022-03-06 22:19:48 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-03-08 22:42:40 +0100 |
commit | cd4b732acd5005edec895da5022771ec4f341d4b (patch) | |
tree | da50a3437955b5f1f54451868a8013511aae7ba7 | |
parent | 7fe0e7b46b6468dea0601c5b7cfb4912ef69cffc (diff) | |
download | serenity-cd4b732acd5005edec895da5022771ec4f341d4b.zip |
HackStudio: Add missing key triggers
Add key triggers that are missing, primarily from the 'New..' menu.
-rw-r--r-- | Userland/DevTools/HackStudio/HackStudioWidget.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index b2ea74b256..8c614067ed 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -432,14 +432,14 @@ void HackStudioWidget::set_edit_mode(EditMode mode) NonnullRefPtr<GUI::Menu> HackStudioWidget::create_project_tree_view_context_menu() { - m_new_file_actions.append(create_new_file_action("C++ Source File", "/res/icons/16x16/filetype-cplusplus.png", "cpp")); - m_new_file_actions.append(create_new_file_action("C++ Header File", "/res/icons/16x16/filetype-header.png", "h")); - m_new_file_actions.append(create_new_file_action("GML File", "/res/icons/16x16/filetype-gml.png", "gml")); - m_new_file_actions.append(create_new_file_action("JavaScript Source File", "/res/icons/16x16/filetype-javascript.png", "js")); - m_new_file_actions.append(create_new_file_action("HTML File", "/res/icons/16x16/filetype-html.png", "html")); - m_new_file_actions.append(create_new_file_action("CSS File", "/res/icons/16x16/filetype-css.png", "css")); + m_new_file_actions.append(create_new_file_action("&C++ Source File", "/res/icons/16x16/filetype-cplusplus.png", "cpp")); + m_new_file_actions.append(create_new_file_action("C++ &Header File", "/res/icons/16x16/filetype-header.png", "h")); + m_new_file_actions.append(create_new_file_action("&GML File", "/res/icons/16x16/filetype-gml.png", "gml")); + m_new_file_actions.append(create_new_file_action("Java&Script Source File", "/res/icons/16x16/filetype-javascript.png", "js")); + m_new_file_actions.append(create_new_file_action("HT&ML File", "/res/icons/16x16/filetype-html.png", "html")); + m_new_file_actions.append(create_new_file_action("C&SS File", "/res/icons/16x16/filetype-css.png", "css")); - m_new_plain_file_action = create_new_file_action("Plain File", "/res/icons/16x16/new.png", ""); + m_new_plain_file_action = create_new_file_action("Plain &File", "/res/icons/16x16/new.png", ""); m_open_selected_action = create_open_selected_action(); m_show_in_file_manager_action = create_show_in_file_manager_action(); @@ -451,7 +451,7 @@ NonnullRefPtr<GUI::Menu> HackStudioWidget::create_project_tree_view_context_menu }); auto project_tree_view_context_menu = GUI::Menu::construct("Project Files"); - auto& new_file_submenu = project_tree_view_context_menu->add_submenu("New"); + auto& new_file_submenu = project_tree_view_context_menu->add_submenu("N&ew..."); for (auto& new_file_action : m_new_file_actions) { new_file_submenu.add_action(new_file_action); } @@ -543,7 +543,7 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_new_directory_action() NonnullRefPtr<GUI::Action> HackStudioWidget::create_open_selected_action() { - auto open_selected_action = GUI::Action::create("Open", [this](const GUI::Action&) { + auto open_selected_action = GUI::Action::create("&Open", [this](const GUI::Action&) { auto files = selected_file_paths(); for (auto& file : files) open_file(file); @@ -555,7 +555,7 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_open_selected_action() NonnullRefPtr<GUI::Action> HackStudioWidget::create_show_in_file_manager_action() { - auto show_in_file_manager_action = GUI::Action::create("Show in File Manager", [this](const GUI::Action&) { + auto show_in_file_manager_action = GUI::Action::create("Show in File &Manager", [this](const GUI::Action&) { auto files = selected_file_paths(); for (auto& file : files) Desktop::Launcher::open(URL::create_with_file_protocol(m_project->root_path(), file)); @@ -1204,7 +1204,7 @@ void HackStudioWidget::create_file_menu(GUI::Window& window) { auto& file_menu = window.add_menu("&File"); - auto& new_submenu = file_menu.add_submenu("New..."); + auto& new_submenu = file_menu.add_submenu("&New..."); new_submenu.add_action(*m_new_project_action); new_submenu.add_separator(); for (auto& new_file_action : m_new_file_actions) { @@ -1216,7 +1216,7 @@ void HackStudioWidget::create_file_menu(GUI::Window& window) new_submenu.add_action(*m_new_directory_action); file_menu.add_action(*m_open_action); - m_recent_projects_submenu = &file_menu.add_submenu("Open Recent"); + m_recent_projects_submenu = &file_menu.add_submenu("Open &Recent"); m_recent_projects_submenu->set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/open-recent.png").release_value_but_fixme_should_propagate_errors()); update_recent_projects_submenu(); file_menu.add_action(*m_save_action); |