viewSelector: Move 'toggle-overview' shortcut to overview
It is handled there already, there's no reason for it to continue to be in ViewSelector. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1624>
This commit is contained in:
parent
22f4a6b7f6
commit
bce67a27cc
@ -1,7 +1,7 @@
|
|||||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
/* exported Overview */
|
/* exported Overview */
|
||||||
|
|
||||||
const { Clutter, GLib, GObject, Meta, Shell, St } = imports.gi;
|
const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
|
|
||||||
// Time for initial animation going into Overview mode;
|
// Time for initial animation going into Overview mode;
|
||||||
@ -14,6 +14,7 @@ const Main = imports.ui.main;
|
|||||||
const MessageTray = imports.ui.messageTray;
|
const MessageTray = imports.ui.messageTray;
|
||||||
const OverviewControls = imports.ui.overviewControls;
|
const OverviewControls = imports.ui.overviewControls;
|
||||||
const Params = imports.misc.params;
|
const Params = imports.misc.params;
|
||||||
|
const WindowManager = imports.ui.windowManager;
|
||||||
const WorkspaceThumbnail = imports.ui.workspaceThumbnail;
|
const WorkspaceThumbnail = imports.ui.workspaceThumbnail;
|
||||||
|
|
||||||
var DND_WINDOW_SWITCH_TIMEOUT = 750;
|
var DND_WINDOW_SWITCH_TIMEOUT = 750;
|
||||||
@ -229,6 +230,13 @@ var Overview = class {
|
|||||||
|
|
||||||
Main.layoutManager.connect('monitors-changed', this._relayout.bind(this));
|
Main.layoutManager.connect('monitors-changed', this._relayout.bind(this));
|
||||||
this._relayout();
|
this._relayout();
|
||||||
|
|
||||||
|
Main.wm.addKeybinding(
|
||||||
|
'toggle-overview',
|
||||||
|
new Gio.Settings({ schema_id: WindowManager.SHELL_KEYBINDINGS_SCHEMA }),
|
||||||
|
Meta.KeyBindingFlags.IGNORE_AUTOREPEAT,
|
||||||
|
Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW,
|
||||||
|
this.toggle.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
addSearchProvider(provider) {
|
addSearchProvider(provider) {
|
||||||
|
@ -358,13 +358,6 @@ var ViewSelector = GObject.registerClass({
|
|||||||
Shell.ActionMode.OVERVIEW,
|
Shell.ActionMode.OVERVIEW,
|
||||||
this._toggleAppsPage.bind(this));
|
this._toggleAppsPage.bind(this));
|
||||||
|
|
||||||
Main.wm.addKeybinding('toggle-overview',
|
|
||||||
new Gio.Settings({ schema_id: SHELL_KEYBINDINGS_SCHEMA }),
|
|
||||||
Meta.KeyBindingFlags.IGNORE_AUTOREPEAT,
|
|
||||||
Shell.ActionMode.NORMAL |
|
|
||||||
Shell.ActionMode.OVERVIEW,
|
|
||||||
Main.overview.toggle.bind(Main.overview));
|
|
||||||
|
|
||||||
let side;
|
let side;
|
||||||
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
|
if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
|
||||||
side = St.Side.RIGHT;
|
side = St.Side.RIGHT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user