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



commit 30c8c5f9b3c3472385ffba98ac23e91c4d68c1d7
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.
    
    Cherry-picked from master.

 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]