Simulate key release event only when the window is actually lost its focus

This commit is contained in:
YUKI Hiroshi 2016-01-15 15:18:46 +09:00
parent 1a16b8f657
commit a44d25c47b

View File

@ -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);