From 174b8ae0b67b501509494ba4462c077010955915 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 23 Jul 2015 01:57:33 +1000 Subject: Delete ancient commented-out events.onFocus. --- common/content/events.js | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'common/content') 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; -- cgit v1.2.3