From f3213238657cd48be2a85ba5b06484bfd55b273b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 26 May 2015 14:14:48 -0700 Subject: [PATCH] Add IJKL as an alternative to the arrow keys for image captcha. --- src/Posting/Captcha.fixes.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/Captcha.fixes.coffee b/src/Posting/Captcha.fixes.coffee index 888953cf6..a2deda7d6 100644 --- a/src/Posting/Captcha.fixes.coffee +++ b/src/Posting/Captcha.fixes.coffee @@ -53,7 +53,7 @@ Captcha.fixes = if x < 0 return unless $('.rc-controls').contains d.activeElement x = if d.activeElement is verify then 11 else 9 - return unless dx = {38: 9, 40: 3, 37: 11, 39: 1}[e.keyCode] # Up, Down, Left, Right + return unless dx = {38: 9, 40: 3, 37: 11, 39: 1, 73: 9, 75: 3, 74: 11, 76: 1}[e.keyCode] # Up, Down, Left, Right, I, K, J, L x = (x + dx) % 12 if x is 10 x = if dx is 11 then 9 else 11