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.
This commit is contained in:
bhuztez
2012-03-03 02:11:25 +01:00
committed by Giovanni Campagna
parent 0b3f7e37f0
commit 82bd3efc73
+3
View File
@@ -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) {