fix rcm related errors (#1446)

fix error when rightclicking certain elements,
and disable hotkey ^A in inputboxes

Co-authored-by: ed <s@ocv.me>
This commit is contained in:
exci 2026-04-20 12:44:32 +03:00 committed by GitHub
parent a997455b5a
commit 874e0e7a01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5740,8 +5740,10 @@ var thegrid = (function () {
var ths = QSA('#ggrid>a');
for (var a = 0, aa = ths.length; a < aa; a++) {
var tr = ebi(ths[a].getAttribute('ref')).closest('tr'),
cl = tr.className || '';
var ref = ths[a].getAttribute('ref');
if (!ref)
continue;
var cl = ebi(ref).closest('tr').className || '';
if (noq_href(ths[a]).endsWith('/'))
cl += ' dir';
@ -6270,6 +6272,9 @@ var ahotkeys = function (e) {
return ebi('griden').click();
}
if (aet == 'input')
return;
var in_ftab = (aet == 'tr' || aet == 'td') && ae.closest('#files');
if (in_ftab) {
var d = '', rem = 0;