You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Opera, keypress event,Del and Insert keys vs . and -
When I attempt to handle onkeypress DOM event in Opera (9.64, 10.10, linux, windows - same results) I have found that Opera sends the same keycode/which combination for both "." and Delete keys (46/46) and for both "-" and Insert keys (45/45). Arrows, PageUp, PageDown,F1-F10 keys sends zero in "which" field of event object and I think this is correct. In mozilla event.which always holds zero in keypress event generated by "special" keys (excluding Enter and BackSpace keys, but they are not a problem).How can I find exactly which key is pressed?
Keydown/keyup events will not work since I want to Hold-Key-And-Wait-For-Autorepeat keyboard feature to work correctly (get multiple keypress events between kydow and keyup) and do not want to implement it in javascript.