doc-browser: fix md scaling + download hotkey

This commit is contained in:
ed 2023-02-10 21:33:48 +00:00
parent 853ae6386c
commit dbdb9574b1
2 changed files with 5 additions and 1 deletions

View file

@ -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);
}

View file

@ -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)