[gnome-builder/wip/gtk4-port] libide/gui: add alt+n accels in capture for pages



commit 0cd57372e2a8ad83891da017a774a3804448e4c1
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 6 10:04:23 2022 -0700

    libide/gui: add alt+n accels in capture for pages

 src/libide/gui/gtk/keybindings.json | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/src/libide/gui/gtk/keybindings.json b/src/libide/gui/gtk/keybindings.json
index c567fd31c..9a311afc7 100644
--- a/src/libide/gui/gtk/keybindings.json
+++ b/src/libide/gui/gtk/keybindings.json
@@ -4,6 +4,18 @@
 { "trigger" : "<Control><Alt>t", "action" : "win.new-terminal-in-runner", "when" : "typeof(workspace) != 
typeof(Ide.GreeterWorkspace)", "phase" : "capture" },
 { "trigger" : "<Control>n", "action" : "editorui.new-file", "when" : "typeof(workspace) != 
typeof(Ide.GreeterWorkspace)", "phase" : "bubble" },
 
+/* Switching pages in editor */
+{ "trigger" : "<Alt>1", "action" : "frame.page", "args" : "1", "when" : 
"focus.get_ancestor(typeof(Ide.Frame)) != null", "phase" : "capture" },
+{ "trigger" : "<Alt>2", "action" : "frame.page", "args" : "2", "when" : 
"focus.get_ancestor(typeof(Ide.Frame)) != null", "phase" : "capture" },
+{ "trigger" : "<Alt>3", "action" : "frame.page", "args" : "3", "when" : 
"focus.get_ancestor(typeof(Ide.Frame)) != null", "phase" : "capture" },
+{ "trigger" : "<Alt>4", "action" : "frame.page", "args" : "4", "when" : 
"focus.get_ancestor(typeof(Ide.Frame)) != null", "phase" : "capture" },
+{ "trigger" : "<Alt>5", "action" : "frame.page", "args" : "5", "when" : 
"focus.get_ancestor(typeof(Ide.Frame)) != null", "phase" : "capture" },
+{ "trigger" : "<Alt>6", "action" : "frame.page", "args" : "6", "when" : 
"focus.get_ancestor(typeof(Ide.Frame)) != null", "phase" : "capture" },
+{ "trigger" : "<Alt>7", "action" : "frame.page", "args" : "7", "when" : 
"focus.get_ancestor(typeof(Ide.Frame)) != null", "phase" : "capture" },
+{ "trigger" : "<Alt>8", "action" : "frame.page", "args" : "8", "when" : 
"focus.get_ancestor(typeof(Ide.Frame)) != null", "phase" : "capture" },
+{ "trigger" : "<Alt>9", "action" : "frame.page", "args" : "9", "when" : 
"focus.get_ancestor(typeof(Ide.Frame)) != null", "phase" : "capture" },
+
+
 /* IdeTerminal */
 { "trigger" : "<Control><Shift>c", "action" : "terminal.copy-clipboard", "when" : 
"typeof(focus).is_a(typeof(Ide.Terminal))", "phase" : "capture" },
 { "trigger" : "<Control><Shift>v", "action" : "terminal.paste-clipboard", "when" : 
"typeof(focus).is_a(typeof(Ide.Terminal))", "phase" : "capture" },


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