aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-03-07 16:03:33 +0000
committerStephen Blott2015-03-07 16:03:33 +0000
commit3e0d5f0538a5db5a170eb35f6ef44f11d4923d42 (patch)
tree380d3d81454f6fd58ff06e20daa64d7d4d91f9e4
parent3f59222312e1aab165eaa5eaa379de256d8e61d0 (diff)
downloadvimium-3e0d5f0538a5db5a170eb35f6ef44f11d4923d42.tar.bz2
Add HTML5 date and tel as targets for focusInput.
-rw-r--r--content_scripts/vimium_frontend.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 836acecd..b2d9f735 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -26,7 +26,7 @@ validFirstKeys = ""
# The corresponding XPath for such elements.
textInputXPath = (->
- textInputTypes = ["text", "search", "email", "url", "number", "password"]
+ textInputTypes = [ "text", "search", "email", "url", "number", "password", "date", "tel" ]
inputElements = ["input[" +
"(" + textInputTypes.map((type) -> '@type="' + type + '"').join(" or ") + "or not(@type))" +
" and not(@disabled or @readonly)]",