diff options
| author | mrmr1993 | 2015-04-27 19:10:44 +0100 | 
|---|---|---|
| committer | mrmr1993 | 2015-04-27 19:10:44 +0100 | 
| commit | 46aac742b0aa25cddbf3959fa05182017f13b09a (patch) | |
| tree | 35541637da6effa1c231da1a3806975b6dd9a36d | |
| parent | 2de9bf879792b4be50efc09ee26d16008bb73ae7 (diff) | |
| download | vimium-46aac742b0aa25cddbf3959fa05182017f13b09a.tar.bz2 | |
Don't focus <input type="submit" /> elements from link hints
| -rw-r--r-- | content_scripts/link_hints.coffee | 2 | 
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)  | 
