We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d82cea commit 88f5d39Copy full SHA for 88f5d39
1 file changed
src/lib/EditableNumber.svelte
@@ -31,8 +31,6 @@
31
function onkeydown(e: KeyboardEvent) {
32
if (['ArrowUp', 'ArrowRight'].includes(e.key)) value = Math.min(value + 1, max)
33
else if (['ArrowDown', 'ArrowLeft'].includes(e.key)) value = Math.max(value - 1, min)
34
- else if (['Home', 'PageUp'].includes(e.key)) value = max
35
- else if (['End', 'PageDown'].includes(e.key)) value = min
36
if (e.key === 'Tab' && isNaN(parseInt(e.key))) e.preventDefault()
37
}
38
</script>
0 commit comments