From 874e0e7a01cf4d1210c37b1e3b87831eb63b6a89 Mon Sep 17 00:00:00 2001 From: exci <76759714+icxes@users.noreply.github.com> Date: Mon, 20 Apr 2026 12:44:32 +0300 Subject: [PATCH] fix rcm related errors (#1446) fix error when rightclicking certain elements, and disable hotkey ^A in inputboxes Co-authored-by: ed --- copyparty/web/browser.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 1efb295e..89270d54 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -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;