Use refresh button as position when nothing has focus.
This commit is contained in:
parent
07fa6e944e
commit
614d3a3e40
@ -80,18 +80,13 @@ Captcha.fixes =
|
|||||||
e.preventDefault() if n is 0
|
e.preventDefault() if n is 0
|
||||||
|
|
||||||
keybinds: (e) ->
|
keybinds: (e) ->
|
||||||
return unless @images and doc.contains(@images[0]) and d.activeElement
|
return unless @images and doc.contains(@images[0])
|
||||||
|
|
||||||
reload = $ '#recaptcha-reload-button, .fbc-button-reload'
|
reload = $ '#recaptcha-reload-button, .fbc-button-reload'
|
||||||
verify = $ '#recaptcha-verify-button, .fbc-button-verify > input'
|
verify = $ '#recaptcha-verify-button, .fbc-button-verify > input'
|
||||||
|
|
||||||
x = @images.indexOf d.activeElement
|
x = @images.indexOf d.activeElement
|
||||||
if x < 0
|
if x < 0
|
||||||
if d.activeElement is verify
|
x = if d.activeElement is verify then 11 else 9
|
||||||
x = 11
|
|
||||||
else if $('.rc-controls, .fbc-buttons').contains d.activeElement
|
|
||||||
x = 9
|
|
||||||
else
|
|
||||||
return
|
|
||||||
|
|
||||||
if !@noscript and e.keyCode is 32 and x < 9 # space on image
|
if !@noscript and e.keyCode is 32 and x < 9 # space on image
|
||||||
@images[x].click()
|
@images[x].click()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user