mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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>
(cherry picked from commit 671df28a50)
This commit is contained in:
parent
39b0c0030b
commit
23e24a4eba
1 changed files with 2 additions and 1 deletions
|
|
@ -2029,7 +2029,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue