diff --git a/control/frontend/src/lib/components/TextInput.svelte b/control/frontend/src/lib/components/TextInput.svelte index 0e76e47..9b41874 100644 --- a/control/frontend/src/lib/components/TextInput.svelte +++ b/control/frontend/src/lib/components/TextInput.svelte @@ -61,7 +61,7 @@ } function handle_keydown(event: KeyboardEvent) { - if (event.key !== 'Enter') return; + if (event.key !== 'Enter' || !current_valid) return; if (enter_mode === 'focus_next') { event.preventDefault();