actually this is much better

This commit is contained in:
ed 2021-07-27 12:26:34 +02:00
parent fb729e5166
commit b533be8818
2 changed files with 6 additions and 2 deletions

View file

@ -236,7 +236,8 @@ the browser has the following hotkeys (assumes qwerty, ignores actual layout)
* `F2` rename selected file/folder * `F2` rename selected file/folder
* when a file/folder is selected (in not-grid-view): * when a file/folder is selected (in not-grid-view):
* `Up/Down` move cursor * `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 * `Space` toggle file selection
* `Ctrl-A` toggle select all * `Ctrl-A` toggle select all
* when playing audio: * when playing audio:

View file

@ -2031,9 +2031,12 @@ document.onkeydown = function (e) {
var el = ae[d + 'ElementSibling']; var el = ae[d + 'ElementSibling'];
if (el) { if (el) {
el.focus(); el.focus();
if (e.shiftKey) if (ctrl(e))
document.documentElement.scrollTop += (d == 'next' ? 1 : -1) * el.offsetHeight; document.documentElement.scrollTop += (d == 'next' ? 1 : -1) * el.offsetHeight;
if (e.shiftKey)
clmod(el, 'sel', 't');
return ev(e); return ev(e);
} }
} }