Backspace does not register in web-sys registered event listener
callmeclover opened this issue · comments
Clover Johnson commented
Describe the Bug
Backspace (and all other non-ASCII keys) do not register towards a keypress event listener.
Steps to Reproduce
Simply running the app and typing in keys will log them to the console. (It does not do this for all non-ASCII keys.)
Expected Behavior
The listener should log the backspace key
Actual Behavior
The listener does not register backspace keystroke. Upon logging all pressed keys, all non-ASCII keys do not log.
Clover Johnson commented
Whoops! Forgot my JS docs and accidentally used keypress instead of keydown, which matches non-printable characters. Don't make my mistakes, people.