diff options
Diffstat (limited to 'common/content/events.js')
-rw-r--r-- | common/content/events.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/content/events.js b/common/content/events.js index 48684f04..78cf1283 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -662,7 +662,9 @@ var Events = Module("events", { let event = events.create(doc, type, evt); if (!evt_obj.dactylString && !evt_obj.dactylShift && !mode) - events.dispatch(dactyl.focusedElement || doc.defaultView, + events.dispatch(dactyl.focusedElement + || ["complete", "interactive"].indexOf(doc.readyState) >= 0 && doc.documentElement + || doc.defaultView, event, evt); else if (type === "keypress") events.events.keypress.call(events, event); |