[gnome-shell] overviewControls: Shift up on double-super
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] overviewControls: Shift up on double-super
- Date: Tue, 2 Mar 2021 19:16:51 +0000 (UTC)
commit f28f7eddb10566c94339e86980bb3af87a630e6f
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Nov 15 17:15:49 2017 +0000
overviewControls: Shift up on double-super
Right now a second super press during the overview transition hides
the overview again. Change that behavior to shift up to the app grid
instead, which is more useful.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1736>
js/ui/overviewControls.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index 3116df4870..d595facae7 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -371,7 +371,13 @@ class ControlsManager extends St.Widget {
if (this._a11ySettings.get_boolean('stickykeys-enable'))
return;
- Main.overview.toggle();
+ const { initialState, finalState, transitioning } =
+ this._stateAdjustment.getStateTransitionParams();
+
+ if (transitioning && finalState > initialState)
+ this._shiftState(Meta.MotionDirection.UP);
+ else
+ Main.overview.toggle();
});
Main.wm.addKeybinding(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]