Confirmed users
1,396
edits
mNo edit summary |
|||
| Line 169: | Line 169: | ||
The following conditions are considered under assumption the user navigates forward by words (ctrl or alt (option) + left/right arrow key depending on platform and text direction). The rules defined below are inverse if user moves backward. | The following conditions are considered under assumption the user navigates forward by words (ctrl or alt (option) + left/right arrow key depending on platform and text direction). The rules defined below are inverse if user moves backward. | ||
<b>Integral element</b> | |||
If the caret position is somewhere in the middle of the rich text and the integral element is next on the way (i.e. its rich word is the next word) then the caret should be set before the rich element. If the caret is before the integral element then the element should be skipped and the caret should be set before the next word. | If the caret position is somewhere in the middle of the rich text and the integral element is next on the way (i.e. its rich word is the next word) then the caret should be set before the rich element. If the caret is before the integral element then the element should be skipped and the caret should be set before the next word. | ||
<div style="margin: 1em 0px; border: 2px dotted orange; padding: 1em;"> | <div style="margin: 1em 0px; border: 2px dotted orange; padding: 1em;"> | ||
| Line 177: | Line 177: | ||
<pre>Enter <input value="number"> in pixels. | <pre>Enter <input value="number"> in pixels. | ||
</pre> | </pre> | ||
If the initial caret position is before 'Enter' word then the caret should be moved before the input element, then | If the initial caret position is before 'Enter' word then the caret should be moved before the input element, then before the 'in' word and then before the 'pixels' word. | ||
</div> | </div> | ||
If the caret is on the integral element | If the caret is on the integral element presented by empty word then the caret should be set before the next word. The rich text container (where the element is placed) should be focused. | ||
For example, if the HTML button is focused ( | For example, if the HTML button is focused (it means the caret is on the element) then the caret should be set before the word following the button. | ||
If the caret is inside of navigable text of the integral element then the user should traverse the navigable text entirely and then the text container where the element lives should be focused and the caret should be set before the next word after the element's word. | |||
<b>Compound element</b> | |||
If the compound element is next on the way (i.e. the first word of its sentence is next word) then the caret should be set before the element. If the caret is before the element then it should be moved before the begin of the second word of the sentence. If the the sentence consist of one word then the caret should be moved before the word following the sentence. | If the compound element is next on the way (i.e. the first word of its sentence is next word) then the caret should be set before the element. If the caret is before the element then it should be moved before the begin of the second word of the sentence. If the the sentence consist of one word then the caret should be moved before the word following the sentence. | ||