diff options
| author | mrmr1993 | 2015-09-13 15:03:04 +0100 |
|---|---|---|
| committer | mrmr1993 | 2015-09-13 15:03:04 +0100 |
| commit | 940ab8d62db784c2506222d3c5c6c1117b30fea3 (patch) | |
| tree | ff5d5af6df4e1e90c9df5ece2c37f05c430cd553 /content_scripts/link_hints.coffee | |
| parent | d53e0a2f09f704c8006e04123f453e930232d79e (diff) | |
| download | vimium-940ab8d62db784c2506222d3c5c6c1117b30fea3.tar.bz2 | |
Make <label>s clickable with LinkHints
Diffstat (limited to 'content_scripts/link_hints.coffee')
| -rw-r--r-- | content_scripts/link_hints.coffee | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 18c608a5..dae7b14e 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -214,6 +214,8 @@ class LinkHintsMode (element.readOnly and DomUtils.isSelectable element)) when "button", "select" isClickable ||= not element.disabled + when "label" + isClickable ||= element.control? # Elements with tabindex are sometimes useful, but usually not. We can treat them as second class # citizens when it improves UX, so take special note of them. |
