screenshot-ui: Bind button to shot/cast

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2103>
This commit is contained in:
Ivan Molodetskikh 2021-12-09 22:28:10 +03:00 committed by Marge Bot
parent b16cfa85e9
commit eb60fa2908

View File

@ -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;