diff --git a/README.md b/README.md index 7289da05..3dccddd0 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,8 @@ the browser has the following hotkeys (assumes qwerty, ignores actual layout) * `F2` rename selected file/folder * when a file/folder is selected (in not-grid-view): * `Up/Down` move cursor - * shift+`Up/Down` move cursor and scroll viewport + * shift+`Up/Down` select and move cursor + * ctrl+`Up/Down` move cursor and scroll viewport * `Space` toggle file selection * `Ctrl-A` toggle select all * when playing audio: diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index d7282b40..1368ab39 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -2031,9 +2031,12 @@ document.onkeydown = function (e) { var el = ae[d + 'ElementSibling']; if (el) { el.focus(); - if (e.shiftKey) + if (ctrl(e)) document.documentElement.scrollTop += (d == 'next' ? 1 : -1) * el.offsetHeight; + if (e.shiftKey) + clmod(el, 'sel', 't'); + return ev(e); } }