diff --git a/modules/window.js b/modules/window.js index d9b15ddb..4c52a25a 100644 --- a/modules/window.js +++ b/modules/window.js @@ -714,7 +714,12 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, { return this.onKeyRelease(aEvent); case 'blur': - return this.simulateKeyRelease(); + let activeWindow = Cc['@mozilla.org/focus-manager;1'] + .getService(Ci.nsIFocusManager) + .activeWindow; + if (!activeWindow || activeWindow != this.window) + this.simulateKeyRelease(); + return; case 'mousedown': return this.onTabbarResizeStart(aEvent);