aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-04-28 03:30:46 +0100
committerStephen Blott2015-04-28 03:30:46 +0100
commit5f5c12104d4be07d1301a70cfdc606e1fd73c167 (patch)
tree94a0e3ea4985a4c75f88091903cd2ea9b8d84e1a
parentc6034b187872aead6e18facbf28e178989fd7f08 (diff)
parent46aac742b0aa25cddbf3959fa05182017f13b09a (diff)
downloadvimium-5f5c12104d4be07d1301a70cfdc606e1fd73c167.tar.bz2
Merge pull request #1595 from mrmr1993/no-focus-submit
Don't focus <input type="submit" /> elements from link hints
-rw-r--r--content_scripts/link_hints.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 6bc37aaf..51e5df35 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -316,7 +316,7 @@ LinkHints =
@deactivateMode(delay, -> LinkHints.delayMode = false)
else
# TODO figure out which other input elements should not receive focus
- if (clickEl.nodeName.toLowerCase() == "input" && clickEl.type != "button")
+ if (clickEl.nodeName.toLowerCase() == "input" and clickEl.type not in ["button", "submit"])
clickEl.focus()
DomUtils.flashRect(matchedLink.rect)
@linkActivator(clickEl)