Re: [w3c/editing] [Input Events] Word deletion (#125)

@choniong Forward and backward give an indication of where the caret will be after the deletion. In the most simple case -- content is just being deleted -- it won't make a difference. But if the JS interrupts the deletion and does something else -- for example for a tracked changes feature where the content will be crossed out rather than actually deleted -- it matters which direction the deletion is happening in.

For example:

[...] = selection, | = collapsed selection

> This is a [piece of text]. 

User hits BackSpace or Delete.

In a simple case (and default behavior if deletion is enabled) the result is:

> This is a |.

In a tracked changes situation, it is important to be able to differentiate between the result of BackSpace:

> This is a |~~piece of text~~.

And Delete

> This is a ~~piece of text~~|.

---
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/125#issuecomment-213027358

Received on Thursday, 21 April 2016 17:28:01 UTC