w3c / uievents

UI Events
https://w3c.github.io/uievents/
Other
145 stars 52 forks source link

Declare keypress event should be fired when pressing Enter, Shift + Enter and Ctrl + Enter #183

Open masayuki-nakano opened 6 years ago

masayuki-nakano commented 6 years ago

Currently, keypress event is declared as:

If supported by a user agent, this event MUST be dispatched when a key is pressed down, if and only if that key normally produces a character value.

However, in any browsers, Enter, Shift + Enter, Ctrl + Enter causes keypress event in any desktop OSes.

Unfortunately, whether keypress event is fired for Alt + Enter and Meta + Enter, and also 2 or modifiers + Enter depends on browser and platform...

masayuki-nakano commented 5 years ago
masayuki-nakano commented 5 years ago

@garykac Could you take a look this issue? This inconsistency could cause making incompatible web apps.