diff --git a/src/components/AnagramHelper/AnagramHelper.tsx b/src/components/AnagramHelper/AnagramHelper.tsx index 7e1318e..464d788 100644 --- a/src/components/AnagramHelper/AnagramHelper.tsx +++ b/src/components/AnagramHelper/AnagramHelper.tsx @@ -102,6 +102,7 @@ export default function AnagramHelper({ onChange={(event) => setLetters(event.target.value)} onKeyDown={(event) => { if (['Enter', 'NumpadEnter'].includes(event.code)) { + event.preventDefault(); shuffle(); } else if (event.code === 'Escape') { // on esc, clear or close