summaryrefslogtreecommitdiff
path: root/Userland/Applications/FontEditor/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-10 14:02:39 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-10 14:58:48 +0200
commit095979dbcd95fe8461d448cbbdc21fdbd6f0d20e (patch)
tree13167d2d16e7e4f04864a3603d7464511b169351 /Userland/Applications/FontEditor/main.cpp
parent55d9f36daee32293832759f12f5eaab32c42f94c (diff)
downloadserenity-095979dbcd95fe8461d448cbbdc21fdbd6f0d20e.zip
FontEditor: Alt shortcuts and book title capitalization in menus
Diffstat (limited to 'Userland/Applications/FontEditor/main.cpp')
-rw-r--r--Userland/Applications/FontEditor/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/FontEditor/main.cpp b/Userland/Applications/FontEditor/main.cpp
index eeddb83d5f..6f3e8a0973 100644
--- a/Userland/Applications/FontEditor/main.cpp
+++ b/Userland/Applications/FontEditor/main.cpp
@@ -118,7 +118,7 @@ int main(int argc, char** argv)
auto menubar = GUI::MenuBar::construct();
- auto& app_menu = menubar->add_menu("File");
+ auto& app_menu = menubar->add_menu("&File");
app_menu.add_action(GUI::CommonActions::make_open_action([&](auto&) {
Optional<String> open_path = GUI::FilePicker::get_open_filepath(window, {}, "/res/fonts/");
if (!open_path.has_value())
@@ -158,14 +158,14 @@ int main(int argc, char** argv)
app->quit();
}));
- auto& view_menu = menubar->add_menu("View");
- auto set_font_metadata = GUI::Action::create_checkable("Font metadata", { Mod_Ctrl, Key_M }, [&](auto& action) {
+ auto& view_menu = menubar->add_menu("&View");
+ auto set_font_metadata = GUI::Action::create_checkable("Font &Metadata", { Mod_Ctrl, Key_M }, [&](auto& action) {
static_cast<FontEditorWidget*>(window->main_widget())->set_show_font_metadata(action.is_checked());
});
set_font_metadata->set_checked(true);
view_menu.add_action(*set_font_metadata);
- auto& help_menu = menubar->add_menu("Help");
+ auto& help_menu = menubar->add_menu("&Help");
help_menu.add_action(GUI::CommonActions::make_help_action([](auto&) {
Desktop::Launcher::open(URL::create_with_file_protocol("/usr/share/man/man1/FontEditor.md"), "/bin/Help");
}));