mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 11:54:13 +01:00
Fix Firefox freakout. Closes issue #463.
This commit is contained in:
@@ -1451,11 +1451,15 @@ var Events = Module("events", {
|
||||
if (elem == null && urlbar && urlbar.inputField == this._lastFocus)
|
||||
util.threadYield(true); // Why? --Kris
|
||||
|
||||
while (modes.main.ownsFocus && !modes.topOfStack.params.holdFocus)
|
||||
while (modes.main.ownsFocus && modes.topOfStack.params.ownsFocus != elem
|
||||
&& !modes.topOfStack.params.holdFocus)
|
||||
modes.pop(null, { fromFocus: true });
|
||||
}
|
||||
finally {
|
||||
this._lastFocus = elem;
|
||||
|
||||
if (modes.main.ownsFocus)
|
||||
modes.topOfStack.params.ownsFocus = elem;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user