[gnome-shell] screenshot-ui: Bind button to shot/cast



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

    screenshot-ui: Bind button to shot/cast
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>

 js/ui/screenshot.js | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js
index 8c41f4efed..ce6ff26a2e 100644
--- a/js/ui/screenshot.js
+++ b/js/ui/screenshot.js
@@ -1850,6 +1850,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]