Simulate key release event only when the window is actually lost its focus
This commit is contained in:
parent
1a16b8f657
commit
a44d25c47b
@ -714,7 +714,12 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
|
|||||||
return this.onKeyRelease(aEvent);
|
return this.onKeyRelease(aEvent);
|
||||||
|
|
||||||
case 'blur':
|
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':
|
case 'mousedown':
|
||||||
return this.onTabbarResizeStart(aEvent);
|
return this.onTabbarResizeStart(aEvent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user