diff options
author | Doug Kearns <dougkearns@gmail.com> | 2015-07-23 01:57:33 +1000 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2015-07-23 01:57:33 +1000 |
commit | 174b8ae0b67b501509494ba4462c077010955915 (patch) | |
tree | 6a7c5c421428b9cefe5947060059bf2e659f95a3 /common/content | |
parent | 77d59cdfd1a1a317cd93cd6220aa01489a2866ab (diff) | |
download | pentadactyl-174b8ae0b67b501509494ba4462c077010955915.tar.gz |
Delete ancient commented-out events.onFocus.
Diffstat (limited to 'common/content')
-rw-r--r-- | common/content/events.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/common/content/events.js b/common/content/events.js index a14117e2..b833372d 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -643,38 +643,12 @@ var Events = Module("events", { delete overlay.getData(elem)["focus-allowed"]; }, - /* - onFocus: function onFocus(event) { - let elem = event.originalTarget; - if (!(elem instanceof Element)) - return; - let win = elem.ownerDocument.defaultView; - - try { - util.dump(elem, services.focus.getLastFocusMethod(win) & (0x7000)); - if (buffer.focusAllowed(win)) - win.dactylLastFocus = elem; - else if (isinstance(elem, [HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement])) { - if (win.dactylLastFocus) - dactyl.focus(win.dactylLastFocus); - else - elem.blur(); - } - } - catch (e) { - util.dump(win, String(elem.ownerDocument), String(elem.ownerDocument && elem.ownerDocument.defaultView)); - util.reportError(e); - } - }, - */ - input: function onInput(event) { event.originalTarget.dactylKeyPress = undefined; }, // this keypress handler gets always called first, even if e.g. // the command-line has focus - // TODO: ...help me...please... keypress: function onKeyPress(event) { event.dactylDefaultPrevented = event.defaultPrevented; @@ -865,9 +839,6 @@ var Events = Module("events", { } }, - // argument "event" is deliberately not used, as i don't seem to have - // access to the real focus target - // Huh? --djk onFocusChange: util.wrapCallback(function onFocusChange(event) { function hasHTMLDocument(win) { return win && win.document && win.document instanceof Ci.nsIDOMHTMLDocument; |