[gnome-builder] plugins/code-comment: add missing keybindings for (un)comment



commit aa5cc5d632b355dc10210f6bbf34d7b38e75bc53
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]