From 43ae6354f33bc5915e2e4c196eeb69d9a2617723 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 20 Jun 2015 22:00:39 -0700 Subject: [PATCH] Spell out 'Comma' and 'Period' in keybinds. --- src/Miscellaneous/Keybinds.coffee | 4 ++-- src/Posting/Captcha.fixes.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index ceb964622..ba796938a 100755 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -215,9 +215,9 @@ Keybinds = when 40 'Down' when 188 - ',' + 'Comma' when 190 - '.' + 'Period' else if 48 <= kc <= 57 or 65 <= kc <= 90 # 0-9, A-Z String.fromCharCode(kc).toLowerCase() diff --git a/src/Posting/Captcha.fixes.coffee b/src/Posting/Captcha.fixes.coffee index 1437b71ad..50fcf7143 100644 --- a/src/Posting/Captcha.fixes.coffee +++ b/src/Posting/Captcha.fixes.coffee @@ -1,5 +1,5 @@ Captcha.fixes = - imageKeys: '789456123uiojklm,.'.split('') + imageKeys: '789456123uiojklm'.split('').concat(['Comma', 'Period']) css: ''' .rc-imageselect-target > div:focus { @@ -79,7 +79,7 @@ Captcha.fixes = addTooltips: (nodes) -> for node, i in nodes - node.title = "#{@imageKeys[i]} or #{@imageKeys[i+9].toUpperCase()}" + node.title = "#{@imageKeys[i]} or #{@imageKeys[i+9][0].toUpperCase()}#{@imageKeys[i+9][1..]}" return checkForm: (e) ->