[gnome-builder/wip/gtk4-port] libide/gui: add shortcuts for preferences/configuration



commit 70ac4f90a9957e47e7902392270ddafc82becaa5
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 10 15:35:22 2022 -0700

    libide/gui: add shortcuts for preferences/configuration

 src/libide/gui/gtk/keybindings.json | 4 ++++
 src/plugins/buildui/gtk/menus.ui    | 1 +
 2 files changed, 5 insertions(+)
---
diff --git a/src/libide/gui/gtk/keybindings.json b/src/libide/gui/gtk/keybindings.json
index 0f67826c9..f4f504b96 100644
--- a/src/libide/gui/gtk/keybindings.json
+++ b/src/libide/gui/gtk/keybindings.json
@@ -19,6 +19,10 @@
 { "trigger" : "<Alt>8", "action" : "frame.page", "args" : "8", "when" : "inGrid()", "phase" : "capture" },
 { "trigger" : "<Alt>9", "action" : "frame.page", "args" : "9", "when" : "inGrid()", "phase" : "capture" },
 
+/* Workspace Actions */
+{ "trigger" : "<Control>comma", "action" : "app.preferences", "phase" : "capture" },
+{ "trigger" : "<Alt>comma", "action" : "workbench.configure", "phase" : "capture" },
+
 /* Build Actions */
 { "trigger" : "<Control><Shift>l", "action" : "win.show-build-log", "when" : "hasProject()", "phase" : 
"capture" },
 { "trigger" : "<Control><Shift>r", "action" : "build-manager.rebuild", "when" : "hasProject()", "phase" : 
"capture" },
diff --git a/src/plugins/buildui/gtk/menus.ui b/src/plugins/buildui/gtk/menus.ui
index af7986cda..f66d83bfe 100644
--- a/src/plugins/buildui/gtk/menus.ui
+++ b/src/plugins/buildui/gtk/menus.ui
@@ -36,6 +36,7 @@
       <item>
         <attribute name="label" translatable="yes">Configure Project…</attribute>
         <attribute name="action">workbench.configure</attribute>
+        <attribute name="accel">&lt;alt&gt;comma</attribute>
       </item>
     </section>
     <section id="build-menu-target">


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