Re: [w3c/uievents] Review whether `key`, `code` etc should be present in legacy `keypress` events (Issue #349)

I'm not sure. Basically, `keydown` should be used instead of `keypress`. However, `KeyboardEvent` does not have attribute whether it will introduce a text input.
* https://github.com/w3c/uievents/issues/264
* https://github.com/w3c/uievents/issues/179

I think that there should be new attribute instead of making `keypress` event more usable for inputs from keyboard.

On the other hand, some text input on macOS and Linux is represented only with `beforeinput` in editable area (e.g., [bug 1520983](https://bugzilla.mozilla.org/show_bug.cgi?id=1520983)) and web apps listens only to `keypress` events are not IME-aware, that's very bad design for IME users. Therefore, working a lot around `KeyboardEvent` may lead inaccessible web-apps development...

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

Message ID: <w3c/uievents/issues/349/1643127188@github.com>

Received on Thursday, 20 July 2023 04:24:10 UTC