[gnome-shell-extensions] windowsNavigator: do nothing when viewtab is not active



commit 82bd3efc73e4a517b88c48ac152d74a175e9a741
Author: bhuztez <bhuztez gmail com>
Date:   Tue Aug 16 22:53:34 2011 +0800

    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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js
index 20185cb..3ec4abf 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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]