From eb60fa290882d2808eaa6ff1eae3875280593fdb Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 9 Dec 2021 22:28:10 +0300 Subject: [PATCH] screenshot-ui: Bind button to shot/cast Part-of: --- js/ui/screenshot.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 8c41f4efe..ce6ff26a2 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;