[gnome-builder/wip/gtk4-port: 906/1774] libide/gui: use canEdit() helper
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 906/1774] libide/gui: use canEdit() helper
- Date: Mon, 11 Jul 2022 22:31:27 +0000 (UTC)
commit 63a5637eef4cdd9a69d308bd9438b30d7fa9cd26
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]