columns compare

This commit is contained in:
Jan Prochazka
2021-10-31 08:24:44 +01:00
parent 36d3fa12f9
commit 5484dc8ace
3 changed files with 42 additions and 3 deletions

View File

@@ -48,6 +48,20 @@
if (event.keyCode == keycodes.upArrow) {
selectedIndex = Math.max(0, selectedIndex - 1);
}
if (event.keyCode == keycodes.pageUp) {
selectedIndex -= Math.floor(clientHeight / headerHeight) - 1;
if (selectedIndex < 0) selectedIndex = 0;
}
if (event.keyCode == keycodes.pageDown) {
selectedIndex += Math.floor(clientHeight / headerHeight) - 1;
if (selectedIndex >= rows.length) selectedIndex = rows.length - 1;
}
if (event.keyCode == keycodes.home) {
selectedIndex = 0;
}
if (event.keyCode == keycodes.end) {
selectedIndex = rows.length - 1;
}
};
function scrollToIndex(index) {