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

I tried to figure out how to define deleteContent as opposed to deleteLine and deleteWord. At frist I thought maybe saying the user wants to delete a character. But it may actually be at the start of a block element, so that deleteContentBackward would indicate a wish to merge paragraphs. Or it may be after a table, in which case it may mean to wish to delete the entire table. So I added to the description "this intention is not covered by another inputType" (and such other inputTypes would be deleteLine/deleteWord). But I'm not sure that is the best possible way of formulating it.

This hasn't been talked about, but what makes out a word or a line can be difficult to figure out. So probably it would be a good idea to have the target range point to what the the browser thinks is a line or a word in the given direction. Then the author can decide whether to go with the browser's idea of a word/line or whether to define his/her own.



---
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-220678250

Received on Friday, 20 May 2016 18:08:46 UTC