Accessibility/RichContentKeyboardBehaviour: Difference between revisions

Jump to navigation Jump to search
m
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.  


==== Integral element ====
<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 &lt;input value="number"&gt; in pixels.
<pre>Enter &lt;input value="number"&gt; in pixels.
</pre>  
</pre>  
If the initial caret position is before 'Enter' word then the caret should be moved before the input element, then after the input element (before the space preceding the 'in' word) and then before the 'pixels' word.
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 and the rich word is empty (i.e. the caret is between its boundary characters) then the caret position should be set before the next word.  
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 (which is treated the caret is on the element) then the caret should be set immediately after the button.  
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.


==== Compound element ====
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.  
Confirmed users
1,396

edits

Navigation menu