mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-18 08:33:34 +01:00
Fix feedkeys in other circumstances.
This commit is contained in:
@@ -359,7 +359,7 @@ const Events = Module("events", {
|
|||||||
dispatch: Class.memoize(function ()
|
dispatch: Class.memoize(function ()
|
||||||
util.haveGecko("2b")
|
util.haveGecko("2b")
|
||||||
? function (target, event) // This causes a crash on Gecko<2.0, it seems.
|
? function (target, event) // This causes a crash on Gecko<2.0, it seems.
|
||||||
target.ownerDocument.defaultView
|
(target.ownerDocument || target.document || target).defaultView
|
||||||
.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils)
|
.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils)
|
||||||
.dispatchDOMEventViaPresShell(target, event, true)
|
.dispatchDOMEventViaPresShell(target, event, true)
|
||||||
: function (target, event) target.dispatchEvent(event)),
|
: function (target, event) target.dispatchEvent(event)),
|
||||||
|
|||||||
Reference in New Issue
Block a user