a bit of front-end work, changing users almost done on login, "drunk-code" no more (id hope), continuous processes and keybinds still not done.
This commit is contained in:
@@ -8,10 +8,26 @@
|
||||
function handleInput(event: Event) {
|
||||
inputValue = (event.target as HTMLInputElement).value;
|
||||
}
|
||||
|
||||
/* function moveCursor() {
|
||||
|
||||
}
|
||||
|
||||
function keyDown(event: KeyboardEvent) {
|
||||
switch(event.key) {
|
||||
case 'Enter':
|
||||
inputValue = ''
|
||||
case 'ArrowRight':
|
||||
document.getElementById('cursor')?.style.transform = 'translateX(8px)'
|
||||
case 'ArrowLeft':
|
||||
|
||||
}
|
||||
} */
|
||||
</script>
|
||||
|
||||
<div class=" relative">
|
||||
<input
|
||||
autofocus
|
||||
bind:value={inputValue}
|
||||
onkeydown={(e) => e.key === 'Enter' && (inputValue = '')}
|
||||
oninput={handleInput}
|
||||
|
||||
Reference in New Issue
Block a user