Closed christianp closed 10 months ago
Hello!I'd like to contribute to this issue
@itlallou thanks for offering to help! Please look at our guidelines on contributing to Numbas.
I think that we can implement this by adding a case for the escape key to the PartDisplay's inputEvents
keypress handler, which would call the PartDisplay's hideWarnings
method.
Actually, I've just tried this and the keypress
needs to change to keyup
- the Escape key doesn't produce a keypress
event.
Fixed by #1035.
At the moment a floating box showing warning messages appears when you focus an answer input.
I think that pressing Esc should hide the floating warning box. They should reappear when the input is focused again.