aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Crosby2012-06-11 17:29:22 -0700
committerPhil Crosby2012-06-12 22:00:35 -0700
commita4796032f47d5b846c01f1d03cddb34a26cae46b (patch)
tree8bc7bff4426dfbb0d62c19d11193ecdbaf32951e
parent50a4fd9ab8c95c653370ed01ab35cde62d6bf058 (diff)
downloadvimium-a4796032f47d5b846c01f1d03cddb34a26cae46b.tar.bz2
Recognize shifted-keystrokes in link hints.
Not sure when this was regressed.
-rw-r--r--content_scripts/link_hints.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/link_hints.js b/content_scripts/link_hints.js
index 96ae933f..5c0cd3bd 100644
--- a/content_scripts/link_hints.js
+++ b/content_scripts/link_hints.js
@@ -349,7 +349,8 @@ var alphabetHints = {
},
matchHintsByKey: function(event, hintMarkers) {
- var keyChar = KeyboardUtils.getKeyChar(event);
+ // If a shifted-character is typed, treat it as lowerase for the purposes of matching hints.
+ var keyChar = KeyboardUtils.getKeyChar(event).toLowerCase();
if (event.keyCode == keyCodes.backspace || event.keyCode == keyCodes.deleteKey) {
if (!this.hintKeystrokeQueue.pop())