Re: [w3c/uievents] How do web apps distinguish if a keydown event causes text input? (#18)

@masayuki-nakano I think non-BMP characters, and sequences with composing characters (eg Emoji), can be dealt with by checking that `.key` is ASCII-only (in other words, `/^[\x00-\x7F]{2,}$/.test(event.key)` should return true if and only if `event.key` is a [named key attribute value](https://www.w3.org/TR/uievents-key/#named-key-attribute-value)). However, that doesn't actually tell you whether a keypress will cause text input, because Ctrl-A does not cause text input but will have what you call a "printable key" as the `event.key` value.

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

Message ID: <w3c/uievents/issues/18/2113230909@github.com>

Received on Wednesday, 15 May 2024 18:48:12 UTC