HugoFara / lwt

Learn languages by reading! A language learning app stemmed from Learning with Texts (LWT).
https://hugofara.github.io/lwt/
The Unlicense
169 stars 19 forks source link

Key down not occurring in Test mode #159

Closed ProgramComputer closed 10 months ago

ProgramComputer commented 1 year ago

https://github.com/HugoFara/lwt/blob/d8e22588ffeebb67f3623de113e9fa342af3749f/src/js/jq_pgm.js#L528 I can key up when solution is not open but not keydown.

HugoFara commented 10 months ago

Thank you for signaling this inconsistent behavior. I gave it a though, and I think it's better to always wait for answer before setting score.

ProgramComputer commented 10 months ago

@HugoFara The behavior has changed from https://github.com/HugoFara/lwt/blob/6ec40a6714d05b048020c351b33207be4252311a/src/js/jq_pgm.js#L278 . Then, the space showed the solution and other keys were allowed after space was pressed. The docs aren't clear that some keys aren't available after/before the solution opens.