[devhelp] shortcuts: support only Ctrl+? for the win.shortcuts-window action



commit 756a6eb8af320a7130477ce9685bdc8ec22e0464
Author: Sébastien Wilmet <sw swilmet be>
Date:   Sun Jan 10 21:39:32 2021 +0100

    shortcuts: support only Ctrl+? for the win.shortcuts-window action
    
    GTK has dropped the use of Ctrl+F1, so do the same in Devhelp.

 src/dh-app.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index 6082e8c3..e7a090da 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -36,7 +36,7 @@ add_menu_action_infos (DhApp *app)
                 { "app.new-window", NULL, N_("New _Window"), "<Control>n",
                   N_("Open a new window") },
                 { "app.preferences", NULL, N_("_Preferences") },
-                { "win.shortcuts-window", NULL, N_("_Keyboard Shortcuts"), NULL,
+                { "win.shortcuts-window", NULL, N_("_Keyboard Shortcuts"), "<Control>question",
                   N_("Show keyboard shortcuts") },
                 { "app.help", NULL, N_("_Help"), "F1",
                   N_("Show help") },
@@ -66,11 +66,6 @@ add_menu_action_infos (DhApp *app)
                                             entries, -1,
                                             GETTEXT_PACKAGE);
 
-        accels[0] = "<Control>F1";
-        accels[1] = "<Control>question";
-        action_info = amtk_action_info_store_lookup (app->priv->menu_action_info_store, 
"win.shortcuts-window");
-        amtk_action_info_set_accels (action_info, accels);
-
         /* The same as in Epiphany. */
         accels[0] = "<Control>minus";
         accels[1] = "<Control>KP_Subtract";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]