summaryrefslogtreecommitdiff
path: root/common/content/events.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/content/events.js')
-rw-r--r--common/content/events.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/common/content/events.js b/common/content/events.js
index a8cc8ac5..0c5c50fb 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -670,7 +670,7 @@ const Events = Module("events", {
// displayed too. --djk
function isInputField() {
let elem = dactyl.focus;
- return elem instanceof HTMLInputElement && set.has(Events.editableInputs, elem.type)
+ return elem instanceof HTMLInputElement && set.has(util.editableInputs, elem.type)
|| elem instanceof HTMLIsIndexElement;
}
@@ -738,7 +738,7 @@ const Events = Module("events", {
if (elem && elem.readOnly)
return;
- if (elem instanceof HTMLInputElement && set.has(Events.editableInputs, elem.type) ||
+ if (elem instanceof HTMLInputElement && set.has(util.editableInputs, elem.type) ||
elem instanceof HTMLSelectElement) {
dactyl.mode = modes.INSERT;
if (hasHTMLDocument(win))
@@ -1075,9 +1075,6 @@ const Events = Module("events", {
// }
}
}, {
- editableInputs: set(["date", "datetime", "datetime-local", "email", "file",
- "month", "number", "password", "range", "search",
- "tel", "text", "time", "url", "week"]),
isContentNode: function (node) {
let win = (node.ownerDocument || node).defaultView;
for (; win; win = win.parent != win && win.parent)
@@ -1087,7 +1084,7 @@ const Events = Module("events", {
},
isInputElemFocused: function () {
let elem = dactyl.focus;
- return elem instanceof HTMLInputElement && set.has(Events.editableInputs, elem.type) ||
+ return elem instanceof HTMLInputElement && set.has(util.editableInputs, elem.type) ||
isinstance(elem, [HTMLIsIndexElement, HTMLEmbedElement,
HTMLObjectElement, HTMLTextAreaElement]);
}