Permalink
Browse files

Added CTRL+ALT+UP and CTRL+ALT+DOWN to show the overview

  • Loading branch information...
1 parent d88b300 commit a537a6bd91c2ccdc9f1e0f0661127ce5a9c2368d @clefebvre clefebvre committed Dec 21, 2011
Showing with 11 additions and 11 deletions.
  1. +2 −2 js/ui/main.js
  2. +9 −9 js/ui/windowManager.js
View
@@ -631,10 +631,10 @@ function _globalKeyPressHandler(actor, event) {
// wm.actionMoveWorkspaceRight();
// return true;
case Meta.KeyBindingAction.WORKSPACE_UP:
- wm.actionMoveWorkspaceUp();
+ //wm.actionMoveWorkspaceUp();
return true;
case Meta.KeyBindingAction.WORKSPACE_DOWN:
- wm.actionMoveWorkspaceDown();
+ //wm.actionMoveWorkspaceDown();
return true;
case Meta.KeyBindingAction.PANEL_RUN_DIALOG:
case Meta.KeyBindingAction.COMMAND_2:
View
@@ -552,18 +552,18 @@ WindowManager.prototype = {
},
_showWorkspaceSwitcher : function(cinnamonwm, binding, mask, window, backwards) {
+ if (binding == 'switch_to_workspace_up') {
+ Main.overview.toggle();
+ return;
+ }
+ if (binding == 'switch_to_workspace_down') {
+ Main.overview.toggle();
+ return;
+ }
+
if (global.screen.n_workspaces == 1)
return;
- //if (this._workspaceSwitcherPopup == null)
- // this._workspaceSwitcherPopup = new WorkspaceSwitcherPopup.WorkspaceSwitcherPopup();
-
- /*if (binding == 'switch_to_workspace_up')
- this.actionMoveWorkspaceUp();
- else if (binding == 'switch_to_workspace_down')
- this.actionMoveWorkspaceDown();*/
- // left/right would effectively act as synonyms for up/down if we enabled them;
- // but that could be considered confusing.
if (binding == 'switch_to_workspace_left')
this.actionMoveWorkspaceLeft();
else if (binding == 'switch_to_workspace_right')

0 comments on commit a537a6b

Please sign in to comment.