screenshot-ui: Bind button to shot/cast
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>
This commit is contained in:
parent
b16cfa85e9
commit
eb60fa2908
@ -1850,6 +1850,15 @@ class ScreenshotUI extends St.Widget {
|
|||||||
return Clutter.EVENT_STOP;
|
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 ||
|
if (symbol === Clutter.KEY_Left || symbol === Clutter.KEY_Right ||
|
||||||
symbol === Clutter.KEY_Up || symbol === Clutter.KEY_Down) {
|
symbol === Clutter.KEY_Up || symbol === Clutter.KEY_Down) {
|
||||||
let direction;
|
let direction;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user