aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorScott Pinkelman2016-10-23 21:45:02 -0600
committerScott Pinkelman2016-10-23 21:46:49 -0600
commit2287f67a32bd4cb8012892c782b913e7ca1b9952 (patch)
tree09deb72a0f717d4193f974074d98988c14aa41c5 /content_scripts
parentf01c01383d5826a028d4c5c2c43d7b5f18f2fef2 (diff)
downloadvimium-2287f67a32bd4cb8012892c782b913e7ca1b9952.tar.bz2
Makes sure all custom link hint characters defined in settings are lower case when link hints are generated
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/link_hints.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 02b8d656..ea002cfe 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -444,7 +444,8 @@ class LinkHintsMode
# Use characters for hints, and do not filter links by their text.
class AlphabetHints
constructor: ->
- @linkHintCharacters = Settings.get "linkHintCharacters"
+ settingsLinkHintCharacters = Settings.get "linkHintCharacters"
+ @linkHintCharacters = settingsLinkHintCharacters.toLowerCase()
# We use the keyChar from keydown if the link-hint characters are all "a-z0-9". This is the default
# settings value, and preserves the legacy behavior (which always used keydown) for users which are
# familiar with that behavior. Otherwise, we use keyChar from keypress, which admits non-Latin