From 5cddab3305fa746fe8814909112fa74bd8d32d16 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 19 Feb 2015 14:39:26 -0500 Subject: [PATCH] gdm: allow user to switch VTs using ctrl-alt-f[1-7] Users currently can't switch VTs while at the login screen. This commit fixes that, by adding the relevant keybindings to the login screen's allowed keybindings list. https://bugzilla.gnome.org/show_bug.cgi?id=744800 --- js/ui/windowManager.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 5e6bdb503..45edf3ac2 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -652,6 +652,14 @@ const WindowManager = new Lang.Class({ this._workspaceSwitcherPopup = null; this._tilePreview = null; + this.allowKeybinding('switch-to-session-1', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-2', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-3', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-4', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-5', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-6', Shell.ActionMode.ALL); + this.allowKeybinding('switch-to-session-7', Shell.ActionMode.ALL); + this.setCustomKeybindingHandler('switch-to-workspace-left', Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW,