Spell out 'Comma' and 'Period' in keybinds.

This commit is contained in:
ccd0 2015-06-20 22:00:39 -07:00
parent ec61bf9d6a
commit 43ae6354f3
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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) ->