diff options
| author | Ramiro Araujo | 2016-11-09 13:23:48 -0300 |
|---|---|---|
| committer | Ramiro Araujo | 2016-11-09 13:23:48 -0300 |
| commit | c5d6b80cb6eae99aed461e20c99a286eaf352a2a (patch) | |
| tree | da027d1d3d93ea4639d207f12c01b4b62353be76 /content_scripts | |
| parent | 84b3e7d65d6cd7391f5b00cb77398cb60fe245bb (diff) | |
| download | vimium-c5d6b80cb6eae99aed461e20c99a286eaf352a2a.tar.bz2 | |
treat select element as an input, setting focus to it
Diffstat (limited to 'content_scripts')
| -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 02b8d656..0014e20a 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -394,7 +394,7 @@ class LinkHintsMode clickActivator = (modifiers) -> (link) -> DomUtils.simulateClick link, modifiers linkActivator = @mode.linkActivator ? clickActivator @mode.clickModifiers # TODO: Are there any other input elements which should not receive focus? - if clickEl.nodeName.toLowerCase() == "input" and clickEl.type not in ["button", "submit"] + if clickEl.nodeName.toLowerCase() in ["input", "select"] and clickEl.type not in ["button", "submit"] clickEl.focus() linkActivator clickEl |
