cognitive-engineering-lab / mdbook-quiz

Interactive quizzes for Markdown
http://cel.cs.brown.edu/mdbook-quiz/
Apache License 2.0
106 stars 23 forks source link

Using left/right arrows when submitting a bug loses the form #18

Closed blueglyph closed 1 year ago

blueglyph commented 1 year ago

URL to the section(s) of the book with this problem: https://rust-book.cs.brown.edu/

Description of the problem: If the user presses on the left or right arrow keys while writing the text in the bug form, the current page changes and the form is lost. It happened to me several times and it's a waste of time; this happens easily when the user needs to move the cursor to add or change text.

The keys are captured by the left menu system rather than the form.

Suggested fix: Make the form capture all the keys when it has the focus.

blueglyph commented 1 year ago

The same is true when using the "Provide feedback on the content"...

willcrichton commented 1 year ago

Thanks for the report. The key capture functionality is there but needs to be extended to the context where the quiz is not fullscreen anymore. I'll fix this in the next release.

blueglyph commented 1 year ago

Thanks!