Re: [w3c/editing] Should execCommand dispatch beforeinput or not? (#200)

> And so given that it is such a special case, it's not clear that it is worth the effort to add this to the spec and then program it for all the browsers.

Special case? Perhaps, but this is relevant to any app that converts dashes, apostrophes and quotes automatically (a standard feature in editors) while also allowing the user to type "normal" dashes and straight quotes in some other way. In general, any app that filters user input in some way needs to distinguish between original user input and the output of the filter. Otherwise, it will re-apply the filter to data which has already been filtered. Yeah, it's possible to hack around the problem, but the most elegant solution would be to have the `InputEvent` itself indicate whether it is issued by the user.


-- 
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/editing/issues/200#issuecomment-575207035

Received on Thursday, 16 January 2020 15:34:24 UTC