diff --git a/4chan_x.user.js b/4chan_x.user.js index 94a4d63c0..cd192b759 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2272,7 +2272,11 @@ }, listener: function(e) { if (e.keyCode === 8 && this.value === '') { - return Recaptcha.reload(); + Recaptcha.reload(); + } + if (e.keyCode === 13 && cooldown.duration) { + $('#auto').checked = true; + return qr.autohide.set(); } }, reload: function() { diff --git a/script.coffee b/script.coffee index a4fdd0d96..384988481 100644 --- a/script.coffee +++ b/script.coffee @@ -1717,8 +1717,11 @@ Recaptcha = if recaptcha = $ '#recaptcha_response_field' #NoScript $.bind recaptcha, 'keydown', Recaptcha.listener listener: (e) -> - if e.keyCode is 8 and @value is '' + if e.keyCode is 8 and @value is '' # backspace to reload Recaptcha.reload() + if e.keyCode is 13 and cooldown.duration # press enter to enable auto-post if cooldown is still running + $('#auto').checked = true + qr.autohide.set() reload: -> window.location = 'javascript:Recaptcha.reload()'