This thread was archived.
Please ask a new question if you need help.
Archived
document.onkeypress does not work in versions after 61
https://jsfiddle.net/menzt4ja/
Mozilla Version 61.0 (64bit) Push key left See "ArrowLeft"
Mozilla Version 67.0b9 (64bit) Push key left Not see anithing
Key "Left,Up,Right,Down" does not work. Others key`s work fine.
https://jsfiddle.net/menzt4ja/
Mozilla Version 61.0 (64bit)
Push key left
See "ArrowLeft"
Mozilla Version 67.0b9 (64bit)
Push key left
Not see anithing
Key "Left,Up,Right,Down" does not work.
Others key`s work fine.
എല്ലാ മറുപടികളും (3)
hi, https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onkeypress says this is deprecated an onkeydown should be used instead...
onkeypress doesn't work with non-printable keys, onkeydown works.
thank