Samyak2 / toipe

yet another typing test, but crab flavoured
MIT License
595 stars 31 forks source link

Only exit on `r` or `q` on the results page #8

Closed Samyak2 closed 2 years ago

Samyak2 commented 2 years ago

Issue

Toipe exits when you press any key on the results page (though, it will restart if r was pressed). I might instinctively press space or enter after the last letter in the typing test, causing toipe to exit without getting a chance to look at the result.

Solution

Do not go forward from the results page unless one of the known keys - r or q - is pressed.