[gnome-builder] app: add shortcut for build



commit 3dd990cce92c2bc1b39458eb8a8d84392d0935b0
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jun 24 16:55:41 2016 -0700

    app: add shortcut for build
    
    This matches the VS keyboard shortcut. Obviously we want to make something
    more extensible for shortcuts, but until we get there, just do what works
    and take note.

 libide/application/ide-application-actions.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libide/application/ide-application-actions.c b/libide/application/ide-application-actions.c
index e43b77c..411cc16 100644
--- a/libide/application/ide-application-actions.c
+++ b/libide/application/ide-application-actions.c
@@ -324,6 +324,7 @@ ide_application_actions_init (IdeApplication *self)
   static const gchar *shortcuts[] = { "<control>F1", "<control><shift>question", NULL };
   static const gchar *help[] = { "F1", NULL };
   static const gchar *command_bar[] = { "<ctrl>Return", "<ctrl>KP_Enter", NULL };
+  static const gchar *build[] = { "<ctrl>F7", NULL };
 
   g_action_map_add_action_entries (G_ACTION_MAP (self), IdeApplicationActions,
                                    G_N_ELEMENTS (IdeApplicationActions), self);
@@ -340,4 +341,5 @@ ide_application_actions_init (IdeApplication *self)
   gtk_application_set_accels_for_action (GTK_APPLICATION (self), "perspective.new-file", new_file);
   gtk_application_set_accels_for_action (GTK_APPLICATION (self), "win.global-search", global_search);
   gtk_application_set_accels_for_action (GTK_APPLICATION (self), "win.show-command-bar", command_bar);
+  gtk_application_set_accels_for_action (GTK_APPLICATION (self), "build-tools.build", build);
 }


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