mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 17:37:57 +01:00
Fixes, mostly, most of which should really be in the default branch.
--HG-- branch : groups
This commit is contained in:
@@ -1160,21 +1160,23 @@ var Hints = Module("hints", {
|
||||
},
|
||||
options: function () {
|
||||
const DEFAULT_HINTTAGS =
|
||||
util.makeXPath(["input[not(@type='hidden')]", "a", "area", "iframe", "textarea", "button", "select",
|
||||
"*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @tabindex or @role='link' or @role='button']"]);
|
||||
|
||||
function xpath(arg) Option.quote(util.makeXPath(arg));
|
||||
function xpath(arg) util.makeXPath(arg);
|
||||
options.add(["extendedhinttags", "eht"],
|
||||
"XPath strings of hintable elements for extended hint modes",
|
||||
"regexpmap", "[iI]:" + xpath(["img"]) +
|
||||
",[asOTivVWy]:" + xpath(["{a,area}[@href]", "{img,iframe}[@src]"]) +
|
||||
",[F]:" + xpath(["body", "code", "div", "html", "p", "pre", "span"]) +
|
||||
",[S]:" + xpath(["input[not(@type='hidden')]", "textarea", "button", "select"]),
|
||||
"regexpmap", {
|
||||
"[iI]": xpath(["img"]),
|
||||
"[asOTivVWy]": xpath(["{a,area}[@href]", "{img,iframe}[@src]"]),
|
||||
"[F]": xpath(["body", "code", "div", "html", "p", "pre", "span"]),
|
||||
"[S]": xpath(["input[not(@type='hidden')]", "textarea", "button", "select"])
|
||||
},
|
||||
{ validator: Option.validateXPath });
|
||||
|
||||
options.add(["hinttags", "ht"],
|
||||
"XPath string of hintable elements activated by 'f' and 'F'",
|
||||
"string", DEFAULT_HINTTAGS,
|
||||
"string", xpath(["input[not(@type='hidden')]", "a", "area", "iframe", "textarea", "button", "select",
|
||||
"*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or " +
|
||||
"@tabindex or @role='link' or @role='button']"]),
|
||||
{ validator: Option.validateXPath });
|
||||
|
||||
options.add(["hintkeys", "hk"],
|
||||
|
||||
Reference in New Issue
Block a user