the-abe-train / globle

Use your geography knowledge to figure out the mystery country in as few guesses as possbile!
https://globle-game.com
Other
185 stars 78 forks source link

feat(guesser): select input text when guess is rejected #124

Closed owenstone closed 2 years ago

owenstone commented 2 years ago

This selects the current input text when it is rejected as invalid or already guessed. Then the next input text replaces, not appends to current text. Previously, one needed to manually select the text, and now you can just type over it. This also puts the focus into the input field on navigation instead of needing you to click on it before typing, but if you come to the game page directly by URL/link, the focus going to the field doesn't work yet.