[gnome-builder/wip/gtk4-port] libide/gui: use canEdit() helper



commit 393ebe0a5a7c0a3f62114af0d6379806eac0aa5a
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 6 19:00:12 2022 -0700

    libide/gui: use canEdit() helper

 src/libide/gui/gtk/keybindings.json | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/gui/gtk/keybindings.json b/src/libide/gui/gtk/keybindings.json
index 3454e6d6d..8d9c0a484 100644
--- a/src/libide/gui/gtk/keybindings.json
+++ b/src/libide/gui/gtk/keybindings.json
@@ -20,9 +20,9 @@
 { "trigger" : "<Alt>9", "action" : "frame.page", "args" : "9", "when" : "inGrid()", "phase" : "capture" },
 
 /* New Terminal Actions */
-{ "trigger" : "<Control><Shift>t", "action" : "win.new-terminal", "when" : "typeof(workspace) != 
typeof(Ide.GreeterWorkspace)", "phase" : "capture" },
-{ "trigger" : "<Control><Alt><Shift>t", "action" : "win.new-terminal-in-config", "when" : "typeof(workspace) 
!= typeof(Ide.GreeterWorkspace)", "phase" : "capture" },
-{ "trigger" : "<Control><Alt>t", "action" : "win.new-terminal-in-runner", "when" : "typeof(workspace) != 
typeof(Ide.GreeterWorkspace)", "phase" : "capture" },
+{ "trigger" : "<Control><Shift>t", "action" : "win.new-terminal", "when" : "canEdit()", "phase" : "capture" 
},
+{ "trigger" : "<Control><Alt><Shift>t", "action" : "win.new-terminal-in-config", "when" : "canEdit()", 
"phase" : "capture" },
+{ "trigger" : "<Control><Alt>t", "action" : "win.new-terminal-in-runner", "when" : "canEdit()", "phase" : 
"capture" },
 
 /* IdeTerminal */
 { "trigger" : "<Control><Shift>c", "action" : "terminal.copy-clipboard", "when" : "inTerminal()", "phase" : 
"capture" },


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