- From: Cristian Talau <notifications@github.com>
- Date: Wed, 27 May 2015 23:47:52 -0700
- To: w3c/editing-explainer <editing-explainer@noreply.github.com>
- Message-ID: <w3c/editing-explainer/issues/56/106198246@github.com>
@rniwa > Doesn't that mean we just need something like "beforeselectionchange" event that exposes where the selection will be and let the website override the new selection as needed? Consider the following use case. ``` verrrry looooong liiineeee short line verrrry looooong liiin|eeee ``` The caret is marked as a | (pipe) symbol. When the user presses the UP key twice, the caret temporarily moves to the end of the short line and then back to the same X axis coordinate on the top line: ``` verrrry looooong liiin|eeee short line verrrry looooong liiineeee ``` So, when the user moves UP/DOWN, we need to override the UA selection but keep this magic X coordinate. However, when moving LEFT/RIGHT both the selection and magic X coordinate should be overridden. Another examples of hidden selection state are: - the pending click count. On some platforms double click means select a word, triple click means select the whole paragraph. - whether the magnifying glass is shown on iOS or not However, these two examples fall more into the mouse triggered selection changes. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/editing-explainer/issues/56#issuecomment-106198246
Received on Thursday, 28 May 2015 06:48:19 UTC