From d9e0cbb13c092e59c61330be4218afe941155df7 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 10 Jul 2007 13:39:22 +0000 Subject: [PATCH] make sure input fields without an explicit 'type' attribute are matched by hinttags and extendedhintags --- chrome/content/vimperator/options.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/chrome/content/vimperator/options.js b/chrome/content/vimperator/options.js index 07f002eb..34f20ba8 100644 --- a/chrome/content/vimperator/options.js +++ b/chrome/content/vimperator/options.js @@ -269,6 +269,11 @@ function Options() //{{{ ////////////////////// DEFAULT OPTIONS ///////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////{{{ + const DEFAULT_HINTTAGS = "//*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @class='s'] | " + + "//input[not(@type='hidden')] | //a | //area | //iframe | //textarea | //button | //select | " + + "//xhtml:*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @class='s'] | " + + "//xhtml:input[not(@type='hidden')] | //xhtml:a | //xhtml:area | //xhtml:iframe | //xhtml:textarea | //xhtml:button | //xhtml:select" + addOption(new Option(["activate"], "stringlist", { short_help: "Define when tabs are automatically activated", @@ -308,11 +313,7 @@ function Options() //{{{ addOption(new Option(["extendedhinttags", "eht"], "string", { short_help: "XPath string of hintable elements activated by ';'", - default_value: "//*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @class='s'] | " + - "//input[@type!='hidden' or not(boolean(@type))] | //a | //area | //iframe | //textarea | //button | //select | " + - "//xhtml:*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @class='s'] | " + - "//xhtml:input[@type!='hidden' or not(boolean(@type))] | //xhtml:a | //xhtml:area | //xhtml:iframe | " + - "//xhtml:textarea | //xhtml:button | //xhtml:select" + default_value: DEFAULT_HINTTAGS } )); addOption(new Option(["focusedhintstyle", "fhs"], "string", @@ -359,10 +360,7 @@ function Options() //{{{ addOption(new Option(["hinttags"], "string", { short_help: "XPath string of hintable elements activated by 'f' and 'F'", - default_value: "//*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @class='s'] | " + - "//input[@type!='hidden'] | //a | //area | //iframe | //textarea | //button | //select | " + - "//xhtml:*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @class='s'] | " + - "//xhtml:input[@type!='hidden'] | //xhtml:a | //xhtml:area | //xhtml:iframe | //xhtml:textarea | //xhtml:button | //xhtml:select" + default_value: DEFAULT_HINTTAGS } )); addOption(new Option(["maxhints", "mh"], "number",