mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
file selection scroll behavior
This commit is contained in:
parent
d337ecdb20
commit
fb729e5166
|
@ -236,6 +236,7 @@ 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
|
||||
* `Space` toggle file selection
|
||||
* `Ctrl-A` toggle select all
|
||||
* when playing audio:
|
||||
|
|
|
@ -166,6 +166,10 @@ body {
|
|||
padding: .3em 0;
|
||||
scroll-margin-top: 45vh;
|
||||
}
|
||||
#files tr {
|
||||
scroll-margin-top: 25vh;
|
||||
scroll-margin-bottom: 20vh;
|
||||
}
|
||||
#files tbody div a {
|
||||
color: #f5a;
|
||||
}
|
||||
|
|
|
@ -2031,7 +2031,9 @@ document.onkeydown = function (e) {
|
|||
var el = ae[d + 'ElementSibling'];
|
||||
if (el) {
|
||||
el.focus();
|
||||
if (e.shiftKey)
|
||||
document.documentElement.scrollTop += (d == 'next' ? 1 : -1) * el.offsetHeight;
|
||||
|
||||
return ev(e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue