Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

കൂടുതലറിയുക
Archived

document.onkeypress does not work in versions after 61

amputator84

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.

See Non-printable keys no longer fire keypress event.