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>
This commit is contained in:
Florian Müllner 2017-11-15 17:15:49 +00:00
parent 1ad45a8232
commit f28f7eddb1

View File

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