diff --git a/src/js/main.js b/src/js/main.js index dd285ef..0d07885 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -313,6 +313,9 @@ const triggerNotification = (text, finalText) => { gameNotification.textContent = text; setTimeout(() => { gameNotification.textContent = finalText; }, 5000); }; +window.onclick = () => { + feedInput.focus(); +}; // pause game function const pauseGame = () => { game.isPaused = game.isPaused ? false : true; diff --git a/src/ts/main.ts b/src/ts/main.ts index 180c787..139f769 100644 --- a/src/ts/main.ts +++ b/src/ts/main.ts @@ -397,9 +397,7 @@ const triggerNotification = (text: string, finalText: string) => { }; window.onclick = () => { - if (document.activeElement !== feedInput) { - feedInput.focus(); - } + feedInput.focus() } // pause game function