Re: [editing-explainer] How does cE=typing work with overtype (insert key is on) (#28)

There are a few ways to approach this:

1. add a "overwrite" flag to the typing intent event, and let editor dev deal with deleting a character and placing the caret
2. add an "overwrite" flag to typing intent event, but the value is the range that the UA thinks should be deleted. Editor dev can delete that range or a different one. UA won't delete anything on its own. After event is allowed to continue UA performs the text insert at caret.
3. Let the default behavior of cE allow deleting a character to perform "overwrite" mode without developer involvement.

Number 3 is not that different from autocorrect as I currently envision it, but we haven't talked about how autocorrect works in cE=typing.

I don't know what the right answer is but we should try to make it so that autocorrect, overwrite, IMEs and any other mode that may want to modify text nodes beyond simple insertion all work in similar ways.



---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing-explainer/issues/28#issuecomment-67226232

Received on Tuesday, 16 December 2014 20:29:27 UTC