aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/link_hints.coffee
diff options
context:
space:
mode:
authormrmr19932015-04-27 19:10:44 +0100
committermrmr19932015-04-27 19:10:44 +0100
commit46aac742b0aa25cddbf3959fa05182017f13b09a (patch)
tree35541637da6effa1c231da1a3806975b6dd9a36d /content_scripts/link_hints.coffee
parent2de9bf879792b4be50efc09ee26d16008bb73ae7 (diff)
downloadvimium-46aac742b0aa25cddbf3959fa05182017f13b09a.tar.bz2
Don't focus <input type="submit" /> elements from link hints
Diffstat (limited to 'content_scripts/link_hints.coffee')
-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)