Accessibility/RichContentKeyboardBehaviour: Difference between revisions

m
Line 235: Line 235:
<b>Integral element</b>
<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.
When processing {{term|integral element}}:
* if the next word is a word of integral element (i.e. the caret is on word preceding the element word) the caret should be set before the word;
* if the caret is before the word then the element should be skipped and the caret should be set before the next word;
* if the caret is on the word then the user should traverse the text of the word entirely (in the case when integral element is presented by complex word) and then the caret should be set before the next word after the word.


<div style="margin: 1em 0px; border: 2px dotted orange; padding: 1em;">
<div style="margin: 1em 0px; border: 2px dotted orange; padding: 1em;">
Line 244: Line 247:
</div>
</div>


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 lives should be focused. For example, if the HTML button is focused (which means the caret is on the element) then the caret should be set before the word following the button.
If the caret is on the focusable element word and goes outside it then the rich text container of the element should be focused. For example, if the HTML button is focused (which 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>In-text element</b>
<b>In-text element</b>


When processing in-text elements:
When processing {{term|in-text element}}:
* if the next word is the first word of a sentence the caret should be placed directly before the element
* if the next word is the first word of a sentence of in-text element the caret should be placed directly before the element;
* if the caret is placed directly before the first word of the sentence, then a move to the next word would place the caret directly in front of the second word of the sentence.
* if the caret is placed directly before the first word of the sentence, then a move to the next word would place the caret directly in front of the second word of the sentence;
* If the caret is placed directly before the first word of the sentence, and the sentence contains only one word, then a move to the next word would result in placing the caret directly in front of the word following the sentence.  
* if the caret is placed directly before the first word of the sentence, and the sentence contains only one word, then a move to the next word would result in placing the caret directly in front of the word following the sentence.  


<div style="margin: 1em 0px; border: 2px dotted orange; padding: 1em;">
<div style="margin: 1em 0px; border: 2px dotted orange; padding: 1em;">
Line 266: Line 267:
If the caret is in the middle of the rich sentence then the user should navigate the whole sentence by words. For example, if the caret is inside of the anchor then the caret should be moved by words through the anchor text.
If the caret is in the middle of the rich sentence then the user should navigate the whole sentence by words. For example, if the caret is inside of the anchor then the caret should be moved by words through the anchor text.


If the caret is inside the focusable in-text element and the caret goes out of the element then the area where the element is placed should be focused.
If the caret is inside the focusable in-text element and the caret goes out of the element then the area where the element is placed should be focused. If the caret is outside the focusable in-text element and the caret goes into it then the element should be focused.


===Navigation by characters===
===Navigation by characters===
Confirmed users
1,396

edits