From 82bd3efc73e4a517b88c48ac152d74a175e9a741 Mon Sep 17 00:00:00 2001 From: bhuztez Date: Tue, 16 Aug 2011 22:53:34 +0800 Subject: [PATCH] windowsNavigator: do nothing when viewtab is not active The keybindings should only kick-in when the "windows" tab is active, otherwise it is confusing and could conflict with other combinations. --- extensions/windowsNavigator/extension.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js index 20185cb7..3ec4abfa 100644 --- a/extensions/windowsNavigator/extension.js +++ b/extensions/windowsNavigator/extension.js @@ -139,6 +139,9 @@ function enable() { workViewInjections['_onKeyRelease'] = undefined; WorkspacesView.WorkspacesView.prototype._onKeyPress = function(s, o) { + if(Main.overview._viewSelector._activeTab.id != 'windows') + return false; + if ((o.get_key_symbol() == Clutter.KEY_Alt_L || o.get_key_symbol() == Clutter.KEY_Alt_R) && !this._pickWorkspace) {