[gnome-builder] app: use primary+shift+question for shortcuts



commit d2397a12074df075e8d5cc9e07a380537022044a
Author: Christian Hergert <chergert redhat com>
Date:   Tue Nov 21 18:49:03 2017 -0800

    app: use primary+shift+question for shortcuts
    
    This was the original choice for keyboard shortcuts, and
    currently we can't duplicate these inside of Dazzle. We use
    the GtkApplication internals for non-default fallbacks.

 src/libide/application/ide-application-shortcuts.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/libide/application/ide-application-shortcuts.c 
b/src/libide/application/ide-application-shortcuts.c
index faebd09..f545b3d 100644
--- a/src/libide/application/ide-application-shortcuts.c
+++ b/src/libide/application/ide-application-shortcuts.c
@@ -30,6 +30,7 @@
 void
 _ide_application_init_shortcuts (IdeApplication *self)
 {
+  static const gchar *shortcuts_fallback[] = { "<Primary>F1", NULL };
   DzlShortcutManager *manager;
   DzlShortcutTheme *theme;
 
@@ -66,5 +67,11 @@ _ide_application_init_shortcuts (IdeApplication *self)
                                    NC_("shortcut window", "Help"),
                                    NC_("shortcut window", "Show the shortcuts window"),
                                    NULL);
-  dzl_shortcut_theme_set_accel_for_action (theme, "app.shortcuts", "<Primary>F1", DZL_SHORTCUT_PHASE_GLOBAL);
+  dzl_shortcut_theme_set_accel_for_action (theme,
+                                           "app.shortcuts",
+                                           "<Primary><Shift>question",
+                                           DZL_SHORTCUT_PHASE_GLOBAL);
+  gtk_application_set_accels_for_action (GTK_APPLICATION (self),
+                                         "app.shortcuts",
+                                         shortcuts_fallback);
 }


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