34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 671df28a509ae208e158976f0855d91fdbea16a1 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
Date: Thu, 7 Sep 2023 18:00:21 +0200
|
|
Subject: [PATCH 2/2] screenshot: Only handle mode-switch shortcut when
|
|
supported
|
|
|
|
We currently handle the 'v' key to switch between recording- and
|
|
screenshot mode regardless of whether screen recordings are
|
|
supported.
|
|
|
|
This is clearly wrong, don't do that.
|
|
|
|
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6990
|
|
|
|
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2944>
|
|
---
|
|
js/ui/screenshot.js | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
Index: gnome-shell-44.1/js/ui/screenshot.js
|
|
===================================================================
|
|
--- gnome-shell-44.1.orig/js/ui/screenshot.js
|
|
+++ gnome-shell-44.1/js/ui/screenshot.js
|
|
@@ -2008,7 +2008,8 @@ var ScreenshotUI = GObject.registerClass
|
|
return Clutter.EVENT_STOP;
|
|
}
|
|
|
|
- if (symbol === Clutter.KEY_v || symbol === Clutter.KEY_V) {
|
|
+ if (this._castButton.reactive &&
|
|
+ (symbol === Clutter.KEY_v || symbol === Clutter.KEY_V)) {
|
|
this._castButton.checked = !this._castButton.checked;
|
|
return Clutter.EVENT_STOP;
|
|
}
|