Replacement for deprecated `keypress` DOM event
According to MDN article keypress event is deprecated: But I can't find any information elsewhere on whether we should use this event in a new projects. If we shouldn't, what is the replacement? Could somebody give an insight? Since the event is deprecated, you should avoid using it in new code, and plan on removing it from old code. The W3C specification says this about deprecated features: Features marked as deprecated are included in the specification as reference to older implementations or specifications, but are OPTIONAL and discouraged. Only features which have existing or in-progress