From e3cc8ca1712e19f5e61b87cb6c2dd7364160714c Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 20 Apr 2026 09:41:58 +0000 Subject: [PATCH] Update browser.js --- copyparty/web/browser.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 5d4ffcb6..89270d54 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -5743,9 +5743,7 @@ var thegrid = (function () { var ref = ths[a].getAttribute('ref'); if (!ref) continue; - var reft = ebi(ref); - var tr = reft && reft.closest('tr'), - cl = tr.className || ''; + var cl = ebi(ref).closest('tr').className || ''; if (noq_href(ths[a]).endsWith('/')) cl += ' dir'; @@ -6274,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;