Skip to content

Commit

Permalink
Add HTML5 date and tel as targets for focusInput.
Browse files Browse the repository at this point in the history
  • Loading branch information
smblott-github committed Mar 7, 2015
1 parent 3f59222 commit 3e0d5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content_scripts/vimium_frontend.coffee
Expand Up @@ -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)]",
Expand Down

0 comments on commit 3e0d5f0

Please sign in to comment.