(change): Extra shortcut keys and loading notice for sheets page.

This commit is contained in:
2026-01-22 15:50:20 -05:00
parent 287e89efa0
commit 0279ce7078
2 changed files with 11 additions and 6 deletions

View File

@@ -11,6 +11,8 @@
if (browser) { if (browser) {
hotkeys.filter = function(event) {return true} hotkeys.filter = function(event) {return true}
hotkeys('alt+q', function(event) {const target = document.getElementById("range_start"); if (target) {target.focus()}})
hotkeys('alt+w', function(event) {const target = document.getElementById("range_end"); if (target) {target.focus()}})
hotkeys('alt+n', function(event) {event.preventDefault(); functions.nextPage(); return false}); hotkeys('alt+n', function(event) {event.preventDefault(); functions.nextPage(); return false});
hotkeys('alt+b', function(event) {event.preventDefault(); functions.prevPage(); return false}); hotkeys('alt+b', function(event) {event.preventDefault(); functions.prevPage(); return false});
hotkeys('alt+j', function(event) {event.preventDefault(); functions.duplicateDown(); return false}); hotkeys('alt+j', function(event) {event.preventDefault(); functions.duplicateDown(); return false});
@@ -26,9 +28,9 @@
<div id="formheader" class="{prefix.color}" bind:offsetHeight={headerHeight}> <div id="formheader" class="{prefix.color}" bind:offsetHeight={headerHeight}>
<div class="flex-row-space tb-margin"> <div class="flex-row-space tb-margin">
<div class="flex-row"> <div class="flex-row">
<input type="number" onfocus={(e) => e.target.select()} bind:value={pagerForm.id_from}> <input type="number" id="range_start" onfocus={(e) => e.target.select()} bind:value={pagerForm.id_from}>
<div style="font-size: 22pt">-</div> <div style="font-size: 22pt">-</div>
<input type="number" onfocus={(e) => e.target.select()} bind:value={pagerForm.id_to}> <input type="number" id="range_end" onfocus={(e) => e.target.select()} bind:value={pagerForm.id_to}>
<button class="styled" onclick={() => { <button class="styled" onclick={() => {
if (Math.abs(pagerForm.id_to - pagerForm.id_from) > 800) { if (Math.abs(pagerForm.id_to - pagerForm.id_from) > 800) {
pagerForm.id_to = pagerForm.id_from + 799; pagerForm.id_to = pagerForm.id_from + 799;

View File

@@ -7,10 +7,13 @@
} }
function loadRows() { function loadRows() {
currentRows = []; currentRows = ["Loading"]
for (let i = formData.startNumber; i <= formData.endNumber; i++) { setTimeout(() => {
currentRows = [...currentRows, i]; currentRows = [];
} for (let i = formData.startNumber; i <= formData.endNumber; i++) {
currentRows = [...currentRows, i];
}
}, 1)
} }
</script> </script>