Re: [w3c/uievents] preventDefault() of keydown event should not kill composition start caused by the keydown (#180)

I disagree. The spec is fine.

If a web application calls KeyboardEvent.preventDefault(), that means it is using the given key for its own purposes (as a hotkey).

For example, let's take the key to the right of P, which starts a composition on MacOS with the French keyboard layout. I may want to use that key in my Web app for some feature. In that case, I want to be able to call .preventDefault() to suppress the native functionality (just like I can suppress the native functionality of F, G or C). It doesn't make sense to make an exception for compositions.

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

Received on Friday, 8 November 2019 00:09:15 UTC