mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 12:37:58 +01:00
Some cleanup to last commit.
--HG-- extra : rebase_source : feb13327849ac80971b113148c6f560af69e59fa
This commit is contained in:
@@ -257,7 +257,7 @@ const Hints = Module("hints", {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
let computedStyle = doc.defaultView.getComputedStyle(elem, null);
|
let computedStyle = doc.defaultView.getComputedStyle(elem, null);
|
||||||
if (computedStyle["visibility"] != "visible" || computedStyle["display"] == "none")
|
if (computedStyle.visibility != "visible" || computedStyle.display == "none")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (isinstance(elem, [HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement]))
|
if (isinstance(elem, [HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement]))
|
||||||
@@ -1065,8 +1065,8 @@ const Hints = Module("hints", {
|
|||||||
["0123456789", "Numbers"],
|
["0123456789", "Numbers"],
|
||||||
["asdfg;lkjh", "Home Row"]],
|
["asdfg;lkjh", "Home Row"]],
|
||||||
validator: function (value) {
|
validator: function (value) {
|
||||||
let values = events.fromString(value).map(events.closure.toString).sort();
|
let values = events.fromString(value).map(events.closure.toString);
|
||||||
return array.equals(array.uniq(values), values);
|
return array.uniq(values).length === values.length;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user