diff --git a/03-midu-typing-game/index.html b/03-midu-typing-game/index.html index 83e5488..557c107 100644 --- a/03-midu-typing-game/index.html +++ b/03-midu-typing-game/index.html @@ -230,7 +230,7 @@

} }) $input.addEventListener('keydown', onKeyDown) - $input.addEventListener('keyup', onKeyUp) + $input.addEventListener('input', onInput) $button.addEventListener('click', initGame) } @@ -293,7 +293,7 @@

} } - function onKeyUp() { + function onInput() { // recuperamos los elementos actuals const $currentWord = $paragraph.querySelector('word.active') const $currentLetter = $currentWord.querySelector('letter.active')