diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index abe5dca1..324b8f6e 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -798,6 +798,7 @@ html.y #path a:hover { .logue:empty { display: none; } +#doc>iframe, .logue>iframe { background: var(--bgg); border: 1px solid var(--bgg); @@ -808,6 +809,7 @@ html.y #path a:hover { width: 100%; height: 0; } +#doc>iframe.focus, .logue>iframe.focus { box-shadow: 0 0 .1em .1em var(--a); } diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 6e3ff941..2281cd24 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -4536,7 +4536,9 @@ document.onkeydown = function (e) { return seek_au_rel(n) || true; if (k == 'KeyY') - return msel.getsel().length ? ebi('seldl').click() : dl_song(); + return msel.getsel().length ? ebi('seldl').click() : + showfile.active() ? ebi('dldoc').click() : + dl_song(); n = k == 'KeyI' ? -1 : k == 'KeyK' ? 1 : 0; if (n !== 0)