hack to focus qr

This commit is contained in:
James Campos 2010-11-14 04:53:36 -08:00
parent 60db94c2ec
commit 12bbeff877
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;