From 8c215b41b74b84d659ea05b0320de53d98fa94f2 Mon Sep 17 00:00:00 2001 From: oliverabrahams Date: Thu, 23 Jan 2025 13:44:42 +0000 Subject: [PATCH] fix for keydown, was preventing default for all keys including tab - We only want to prevent default for keys which have length 1 --- libs/@guardian/react-crossword/src/components/Grid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/@guardian/react-crossword/src/components/Grid.tsx b/libs/@guardian/react-crossword/src/components/Grid.tsx index b9a6a07a4..2f12321ee 100644 --- a/libs/@guardian/react-crossword/src/components/Grid.tsx +++ b/libs/@guardian/react-crossword/src/components/Grid.tsx @@ -265,7 +265,7 @@ export const Grid = () => { deleteLetter(event.target.value); } } else { - if (event.key) { + if (event.key && event.key.length === 1) { event.preventDefault(); typeLetter(event.key); }