client: Implement showing window menu when F10 pressed

Fixes #1102
This commit is contained in:
Michael Gratton 2021-01-07 11:54:12 +11:00 committed by Michael James Gratton
parent 600be0d5f4
commit 7ec99e1f6b
5 changed files with 39 additions and 4 deletions

View file

@ -1,6 +1,6 @@
/*
* Copyright © 2016 Software Freedom Conservancy Inc.
* Copyright © 2019-2020 Michael Gratton <mike@vee.net>
* Copyright © 2019-2021 Michael Gratton <mike@vee.net>
*
* This software is licensed under the GNU Lesser General Public License
* (version 2.1 or later). See the COPYING file in this distribution.
@ -400,6 +400,7 @@ public class Application.Client : Gtk.Application {
add_window_accelerators(
Action.Window.SHORTCUT_HELP, { "<Ctrl>F1", "<Ctrl>question" }
);
add_window_accelerators(Action.Window.SHOW_MENU, { "F10" });
// Common edit accels
add_edit_accelerators(Action.Edit.COPY, { "<Ctrl>C" });