sabrina-aip / spellcheck

a very silly spelling bee game
74 stars 36 forks source link

feat: autoplay next word when pressing enter on keyboard in practice mode #17

Open kaelonR opened 5 months ago

kaelonR commented 5 months ago

In practice mode, We can use the enter key to submit a word, but then still have to click the play button with the mouse to hear the next word.

This PR fixes this. When submitting via the enter key, the next word will play automatically after 250 milliseconds. The 250ms delay is there to make sure there isn't an abrupt change from one soundtrack into another which can make the word difficult to hear.

gruelingpine185 commented 5 months ago

dang... you beat me to it.

wmpedersen commented 5 months ago

Just referencing my commit here - I do like the idea of autoplaying for the one-word interfaces like youtube or spelloff as well if you could add it, though I know they're kind of hidden modes.