Re: [w3c/editing] Should we expose physical direction in Deletion commands? (for the case of RTL) (#133)

@choniong Logical directions are generally more important when writing editor code. To handle a `Delete*Backward` we just need to know where in the DOM-tree the selection currently is and then change what is before it in the DOM-tree without having to worry about what direction the text is rendered in on the screen.

There may also be cases where it's of interest what physical direction the deletion/insertion occurs in, but all I can think about are cases where one is trying to place a DOM-based caret using JavaScript, but even then when can simply find the coordinates of the selection after the deletion and draw the caret there.

Can you think of circumstances where this would be important?    

---
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/133#issuecomment-235630295

Received on Wednesday, 27 July 2016 15:53:03 UTC