baetheus / bee

A try at cloning the New York Times Spelling Bee
Mozilla Public License 2.0
17 stars 6 forks source link

Add keyboard support with better word failure notices #38

Closed JohnHKoh closed 2 years ago

JohnHKoh commented 2 years ago

Adds ability to use keyboard to input letters, backspace to delete letters, and enter to submit words.

Because the "enter" key now allows the submission of words without any validation (i.e. the word length does not need to be at least 4 in order to press "enter"), we need more error messages to precisely describe why a word is not accepted. This more accurately mimics the behavior of the original game, but differs from how this clone is implemented.

Preview: image

Also quick fix to make cursor: default on disabled buttons.