From 46aac742b0aa25cddbf3959fa05182017f13b09a Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Mon, 27 Apr 2015 19:10:44 +0100 Subject: Don't focus elements from link hints --- content_scripts/link_hints.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3