Re: [w3c/uievents] Cancelable/default action for keydown, composition*, beforeinput, textInput, input (Issue #361)

I forgot about `keypress`.

https://software.hixie.ch/utilities/js/live-dom-viewer/saved/12264

The spec says: 
> The [keypress](https://w3c.github.io/uievents/#keypress) event type MUST be dispatched after the [beforeinput](https://w3c.github.io/uievents/#beforeinput) event and before the [input](https://w3c.github.io/uievents/#input) event associated with the same key.

https://w3c.github.io/uievents/#keypress-event-order

However Chrome, Safari, Firefox all fire `keypress` right after `keydown` when typing "a" in `<input>` or `contenteditable` element.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/361#issuecomment-1887798409
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/uievents/issues/361/1887798409@github.com>

Received on Thursday, 11 January 2024 19:14:10 UTC