- From: Carolyn MacLeod <notifications@github.com>
- Date: Wed, 12 Jul 2017 19:16:01 -0700
- To: w3c/editing <editing@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 13 July 2017 02:16:28 UTC
One area that is not well supported in contenteditable is using the keyboard to traverse a "word". The user should be able to type `Ctrl + right arrow` to move the caret forward one word, and `Ctrl + left arrow` to move backward. But what is a "word"? Currently, the browser gets to decide. But it should be the author determining what makes the most sense for the app. For example, if the contenteditable is representing a code editor, then a "word" is not necessarily surrounded by the whitespace, comma, period of a typical "word" in a word processor. In fact, a code editor may want the definition of "word" to include strings consisting of only symbols. Maybe a "word" should only be a portion of aCamelCaseVariableName. Perhaps the definition of "word" is different in different languages. The point is that there is currently no API currently available to _page authors_ to let them specify "what is the 'word' at this caret position". The browsers have access to the platform API for this, but they currently don't pass it through. -- 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/127#issuecomment-314950489
Received on Thursday, 13 July 2017 02:16:28 UTC