Skip to content

Commit

Permalink
fix for keydown, was preventing default for all keys including tab - …
Browse files Browse the repository at this point in the history
…We only want to prevent default for keys which have length 1
  • Loading branch information
oliverabrahams committed Jan 23, 2025
1 parent 226926f commit 8c215b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/@guardian/react-crossword/src/components/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8c215b4

Please sign in to comment.