Comment 1 for bug 58693

Revision history for this message
Vojtěch Smejkal (smejky) wrote : keyPress does not work perfectly in browser javascript

Browser javascript does not detect certain pressed keys.

Reproduce:
Set any HTML object onkeypress attribute like for example this:
<textarea onkeypress="alert(event.which);"></textarea>

If you press any key in this textarea, it shows you key code.
But if you want write ü or ä (German) in a way, that you press umlaut first and then letter,
nothing happen. It does not work with some other letters (áíéščřžě) and probably more.

It was tested in Opera, Firefox, Epiphany.
(in Opera you have to replace event.which by event.keyCode)

You can try it here: http://extender.ic.cz/keypress.html