diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index c9c4f2f1f..e3f418bdf 100644 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -221,6 +221,10 @@ Keybinds = 'Comma' when 190 'Period' + when 191 + 'Slash' + when 59, 186 + 'Semicolon' 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 c0c1df119..7d90a9abc 100644 --- a/src/Posting/Captcha.fixes.coffee +++ b/src/Posting/Captcha.fixes.coffee @@ -1,5 +1,6 @@ Captcha.fixes = imageKeys: '789456123uiojklm'.split('').concat(['Comma', 'Period']) + imageKeys16: '7890uiopjkl'.split('').concat(['Semicolon', 'm', 'Comma', 'Period', 'Slash']) css: ''' .rc-imageselect-target > div:focus { @@ -68,6 +69,7 @@ Captcha.fixes = for img in @images img.tabIndex = 0 @addTooltips @images if @images.length is 9 + @addTooltips16 @images if @images.length is 16 @complaintLinks() complaintLinks: -> @@ -97,6 +99,11 @@ Captcha.fixes = node.title = "#{@imageKeys[i]} or #{@imageKeys[i+9][0].toUpperCase()}#{@imageKeys[i+9][1..]}" return + addTooltips16: (nodes) -> + for node, i in nodes + node.title = "#{@imageKeys16[i][0].toUpperCase()}#{@imageKeys16[i][1..]}" + return + checkForm: (e) -> n = 0 n++ for checkbox in @images when checkbox.checked @@ -120,6 +127,9 @@ Captcha.fixes = else if n is 9 and (i = @imageKeys.indexOf key) >= 0 @images[i % 9].click() verify.focus() + else if n is 16 and (i = @imageKeys16.indexOf key) >= 0 + @images[i].click() + verify.focus() else if dx = {'Up': n, 'Down': w, 'Left': last, 'Right': 1}[key] x = (x + dx) % (n + w) if n < x < last