mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
fix(control): handle_enter wasn't connected to valid_state
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handle_keydown(event: KeyboardEvent) {
|
function handle_keydown(event: KeyboardEvent) {
|
||||||
if (event.key !== 'Enter') return;
|
if (event.key !== 'Enter' || !current_valid) return;
|
||||||
|
|
||||||
if (enter_mode === 'focus_next') {
|
if (enter_mode === 'focus_next') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user