From 2ef18e4083556f6f2b26ef52b1a3bbbac7839f8b Mon Sep 17 00:00:00 2001 From: rlacodud <74367207+rlacodud@users.noreply.github.com> Date: Sun, 14 Apr 2024 18:40:23 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A7=88=EC=9A=B0=EC=8A=A4,=20=ED=82=A4?= =?UTF-8?q?=EB=B3=B4=EB=93=9C=20=ED=98=BC=ED=95=A9=20=EA=B3=84=EC=82=B0=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Keyboard/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;