[gnome-shell/screenshot-ui-gsd-binds: 2/10] screenshot-ui: Bind button to shot/cast




commit 71100da7f01f702fcdf639881ef744d37dce7321
Author: Ivan Molodetskikh <yalterz gmail com>
Date:   Thu Dec 9 22:28:10 2021 +0300

    screenshot-ui: Bind button to shot/cast

 js/ui/screenshot.js | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js
index 1658d5aa5e..73b0c2c264 100644
--- a/js/ui/screenshot.js
+++ b/js/ui/screenshot.js
@@ -1852,6 +1852,15 @@ class ScreenshotUI extends St.Widget {
             return Clutter.EVENT_STOP;
         }
 
+        if (symbol === Clutter.KEY_v || symbol === Clutter.KEY_V) {
+            if (this._shotButton.checked)
+                this._castButton.checked = true;
+            else
+                this._shotButton.checked = true;
+
+            return Clutter.EVENT_STOP;
+        }
+
         if (symbol === Clutter.KEY_Left || symbol === Clutter.KEY_Right ||
             symbol === Clutter.KEY_Up || symbol === Clutter.KEY_Down) {
             let direction;


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