[gnome-builder] editor: add shortcut for sidebar
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editor: add shortcut for sidebar
- Date: Wed, 19 Jul 2017 11:07:57 +0000 (UTC)
commit e91c39b08cbde8c1125f5b99870747ea07fe7189
Author: Christian Hergert <chergert redhat com>
Date: Tue Jul 4 16:34:35 2017 -0700
editor: add shortcut for sidebar
libide/editor/ide-editor-perspective-shortcuts.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/libide/editor/ide-editor-perspective-shortcuts.c
b/libide/editor/ide-editor-perspective-shortcuts.c
index 3b0f1b8..5fceee1 100644
--- a/libide/editor/ide-editor-perspective-shortcuts.c
+++ b/libide/editor/ide-editor-perspective-shortcuts.c
@@ -39,6 +39,12 @@ static const DzlShortcutEntry editor_perspective_entries[] = {
N_("Editor"),
N_("Files"),
N_("Open a document") },
+
+ { "org.gnome.builder.editor.show-sidebar",
+ NULL,
+ N_("Editor"),
+ N_("Panels"),
+ N_("Toggle left sidebar") },
};
void
@@ -60,6 +66,11 @@ _ide_editor_perspective_init_shortcuts (IdeEditorPerspective *self)
I_("<Primary>o"),
I_("editor.open-file"));
+ dzl_shortcut_controller_add_command_action (controller,
+ I_("org.gnome.builder.editor.show-sidebar"),
+ I_("F9"),
+ I_("dockbin.left-visible"));
+
dzl_shortcut_manager_add_shortcut_entries (NULL,
editor_perspective_entries,
G_N_ELEMENTS (editor_perspective_entries),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]