Commit 3dd990cc authored by Christian Hergert's avatar Christian Hergert
Browse files

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.
parent 38ac15a6
......@@ -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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment