[gnome-builder/gnome-builder-43] plugins/code-comment: add missing keybindings for (un)comment
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-43] plugins/code-comment: add missing keybindings for (un)comment
- Date: Wed, 21 Sep 2022 06:10:41 +0000 (UTC)
commit 1841aa94854e8d54906c6a6e6921feb8cbc340fc
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 20 23:10:20 2022 -0700
plugins/code-comment: add missing keybindings for (un)comment
src/plugins/comment-code/comment-code.gresource.xml | 1 +
src/plugins/comment-code/gtk/keybindings.json | 2 ++
2 files changed, 3 insertions(+)
---
diff --git a/src/plugins/comment-code/comment-code.gresource.xml
b/src/plugins/comment-code/comment-code.gresource.xml
index b1bef6cf1..98050b67b 100644
--- a/src/plugins/comment-code/comment-code.gresource.xml
+++ b/src/plugins/comment-code/comment-code.gresource.xml
@@ -2,6 +2,7 @@
<gresources>
<gresource prefix="/plugins/comment-code">
<file>comment-code.plugin</file>
+ <file>gtk/keybindings.json</file>
<file preprocess="xml-stripblanks">gtk/menus.ui</file>
</gresource>
</gresources>
diff --git a/src/plugins/comment-code/gtk/keybindings.json b/src/plugins/comment-code/gtk/keybindings.json
new file mode 100644
index 000000000..e7d01a800
--- /dev/null
+++ b/src/plugins/comment-code/gtk/keybindings.json
@@ -0,0 +1,2 @@
+{ "trigger" : "<Control>m", "action" : "page.comment-code.comment-code", "args" : "'0'", "when" :
"canEdit()", "phase" : "capture" },
+{ "trigger" : "<Control><Shift>m", "action" : "page.comment-code.comment-code", "args" : "'1'", "when" :
"canEdit()", "phase" : "capture" },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]