diff --git a/src/components/Keyboard/index.tsx b/src/components/Keyboard/index.tsx index fc4fcda..a93d42a 100644 --- a/src/components/Keyboard/index.tsx +++ b/src/components/Keyboard/index.tsx @@ -167,7 +167,11 @@ function Keyboard() { const handleKeyDown = (e: KeyboardEvent) => { if (!buttonRefs.current) return; const value = e.key; - + buttonRefs.current.forEach(button => { + if (button) { + button.blur(); + } + }); const targetButton = buttonRefs.current.find(button => { if (value === ' ') return button?.value === ','; return button?.value === value;