Re: [editing-explainer] What browser internals can be exposed to help us move the caret in (and against) the block direction? (#56)

So an example of what @rniwa asked is something like, IIUC, as an editor JS developer, I want to build an editor that:

1. Remember logical-X when block-directional arrow key is pressed, if it was not remembered yet.
2. Left, right, ctrl+left, etc. all flushes what JS remembered above.
3. Want to set the selection by specifying the remembered logical-X if next key is up/down.

Make sure you can build your editor, add mouse, page up/down, home/end, etc. Now we know, for this example, browsers need to expose logical-X, beforeselectionchange event, a flag indicating whether it's inline or block-direction, and a method to set selection by logical-X.

Another JS editor developer may come up with different algorithm. We can then get a list of events, event properties, selection properties, and methods that suffices such needs.

Unless I misunderstand what @rniwa says...I hope not ;)

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

Received on Thursday, 28 May 2015 12:57:53 UTC