diff --git a/4chan_x.coffee b/4chan_x.coffee index 1ba734a86..f4bfce5ad 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -422,6 +422,8 @@ keyAct = (e) -> when "O" qrLink = $ "#{hash} ~ span[id] a:not(:first-child)" quickReply.call qrLink + ta = $ '#qr textarea' + ta.focus() when "T" href = $("#{hash} ~ span[id] a:last-of-type").href GM_openInTab href diff --git a/4chan_x.js b/4chan_x.js index f76f5b108..462dfb53a 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -452,7 +452,7 @@ return recaptchaReload(); }; keyAct = function(e) { - var _i, _len, char, count, hash, href, img, kc, position, qrLink, temp; + var _i, _len, char, count, hash, href, img, kc, position, qrLink, ta, temp; kc = e.keyCode; if (!((48 <= kc) && (kc <= 90))) { return null; @@ -531,6 +531,8 @@ case "O": qrLink = $("" + (hash) + " ~ span[id] a:not(:first-child)"); quickReply.call(qrLink); + ta = $('#qr textarea'); + ta.focus(); break; case "T": href = $("" + (hash) + " ~ span[id] a:last-of-type").href;