Accessibility/EditorBehaviourOnUserInput: Difference between revisions

Jump to navigation Jump to search
Line 38: Line 38:


Note: for discussions about navigation, unless specified assume caret navigation mode is off.
Note: for discussions about navigation, unless specified assume caret navigation mode is off.
==Special content element as a lexical unit==
===Special content element is a word===
The special content element should be treated as a word when the user navigates through editable area.
The compound element will be referred as a <i>compound word</i> (for example, HTML anchor), any other element as a <i>word</i> (for example, HTML button). The term <i>special word</i> will be used to emphasize the word is represented by a special content element.
The number of characters of the special word depends on whether this is compound word or not. If the word is not compound then it hasn't any characters and it will be referred as an <i>empty word</i>. Otherwise the word contains all characters of the element's content.
In that way non editable area is treated as an empty word if caret navigation mode is turned off. Otherwise it is treated as a compound word consisted of a number of words equaled to a number of words non editable element consists of. The control element is treated as an empty word. The focusable compound element consists of a number of words equaled to a number of words of the element's content and it doesn't depend on caret navigation mode state.
===Boundaries of the special word===
The special word boundaries are designated by special autogenerated <i>empty characters</i>, used as a word delimiters. If the special content elements are placed each after other then each of them has empty character embedded between them, i.e. the elements don't share empty characters.
The empty characters are not presented visually, however they participate in keyboard navigation as normal characters.
In the following example
<pre>
text<button>btn</button><a>link</a>text
</pre>
conditional notation can be presented as "text<span style="color:blue;">||</span><span style="color:red;">|</span>link<span style="color:red;">|</span>text", where the empty character is marked by '|' symbol. Both the empty word for the button and the compound word for the link are wrapped by empty characters ('|' symbols of blue and red colors correspondingly).
===The caret position and selection terms===
If the caret position is immediately before/after left/right empty character of the special content element then it will be referred as <i>the caret is immediately before/after the element</i>.
If the caret position is between empty characters of the sibling special content elements then it will be referred as <i>the caret is between the elements</i>.
If the caret position is between empty characters of the integral element then it will be referred as <i>the caret is on the element</i>.
If the selection contains both empty characters of the special content element then it will be referred as <i>the element is selected entirely</i>.


==Keyboard interaction with special content==
==Keyboard interaction with special content==
Confirmed users
1,396

edits

Navigation menu