(change): Extra shortcut keys and loading notice for sheets page.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -7,10 +7,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadRows() {
|
function loadRows() {
|
||||||
|
currentRows = ["Loading"]
|
||||||
|
setTimeout(() => {
|
||||||
currentRows = [];
|
currentRows = [];
|
||||||
for (let i = formData.startNumber; i <= formData.endNumber; i++) {
|
for (let i = formData.startNumber; i <= formData.endNumber; i++) {
|
||||||
currentRows = [...currentRows, i];
|
currentRows = [...currentRows, i];
|
||||||
}
|
}
|
||||||
|
}, 1)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user