DOM2 does not provide a key event module.
That's fine. I'm down with that.
According to the DOM3 Events spec
(in last call), there's no keyPress event, only keyDown and keyUp. Instead (I guess) they've defined a new interface for text events
, which provides one event type: textInput.
Should I not code event handlers for keyPress events if I wish to write DOM-compliant scripts? IE & Moz both register a keyPress; I'm sure that it won't be outphased. I worry instead about a new and better browser appearing and balking on my script because it's coded exactly to spec.