From 2287f67a32bd4cb8012892c782b913e7ca1b9952 Mon Sep 17 00:00:00 2001 From: Scott Pinkelman Date: Sun, 23 Oct 2016 21:45:02 -0600 Subject: Makes sure all custom link hint characters defined in settings are lower case when link hints are generated --- content_scripts/link_hints.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content_scripts') 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 -- cgit v1.2.3