diff options
| author | Stephen Blott | 2015-04-28 03:30:46 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-04-28 03:30:46 +0100 |
| commit | 5f5c12104d4be07d1301a70cfdc606e1fd73c167 (patch) | |
| tree | 94a0e3ea4985a4c75f88091903cd2ea9b8d84e1a | |
| parent | c6034b187872aead6e18facbf28e178989fd7f08 (diff) | |
| parent | 46aac742b0aa25cddbf3959fa05182017f13b09a (diff) | |
| download | vimium-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.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) |
