hack to focus qr
This commit is contained in:
parent
60db94c2ec
commit
12bbeff877
@ -422,6 +422,8 @@ keyAct = (e) ->
|
|||||||
when "O"
|
when "O"
|
||||||
qrLink = $ "#{hash} ~ span[id] a:not(:first-child)"
|
qrLink = $ "#{hash} ~ span[id] a:not(:first-child)"
|
||||||
quickReply.call qrLink
|
quickReply.call qrLink
|
||||||
|
ta = $ '#qr textarea'
|
||||||
|
ta.focus()
|
||||||
when "T"
|
when "T"
|
||||||
href = $("#{hash} ~ span[id] a:last-of-type").href
|
href = $("#{hash} ~ span[id] a:last-of-type").href
|
||||||
GM_openInTab href
|
GM_openInTab href
|
||||||
|
|||||||
@ -452,7 +452,7 @@
|
|||||||
return recaptchaReload();
|
return recaptchaReload();
|
||||||
};
|
};
|
||||||
keyAct = function(e) {
|
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;
|
kc = e.keyCode;
|
||||||
if (!((48 <= kc) && (kc <= 90))) {
|
if (!((48 <= kc) && (kc <= 90))) {
|
||||||
return null;
|
return null;
|
||||||
@ -531,6 +531,8 @@
|
|||||||
case "O":
|
case "O":
|
||||||
qrLink = $("" + (hash) + " ~ span[id] a:not(:first-child)");
|
qrLink = $("" + (hash) + " ~ span[id] a:not(:first-child)");
|
||||||
quickReply.call(qrLink);
|
quickReply.call(qrLink);
|
||||||
|
ta = $('#qr textarea');
|
||||||
|
ta.focus();
|
||||||
break;
|
break;
|
||||||
case "T":
|
case "T":
|
||||||
href = $("" + (hash) + " ~ span[id] a:last-of-type").href;
|
href = $("" + (hash) + " ~ span[id] a:last-of-type").href;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user