Accessibility/EditorBehaviourOnUserInput: Difference between revisions

Jump to navigation Jump to search
Line 62: Line 62:


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.
==Mouse interaction with special content==
The special content element behaviour is the same on mouse input if the mouse isn't used to change the selection.
For example, if user clicks on combobox (HTML:select) then drop down list appears.
==Managing the selection==
When integral element participates in selection then it should be selected entirely always. If the integral element has own selection behaviour (like a HTML input) while the it's focused and the user starts the selection inside of it then there is no way to extend the selection out of boundaries of the element.
When compound element participates in selection then the editor should provide two opposite options to the user. It should be possible to select the element entirely so that its content wouldn't be selected. On the another hand it should be possible to select the content of the compound element so that the element itself wouldn't be selected.
Visually the selected entirely element might have blue border around it.
===Keyboard selection===
When user holds selection modifier key (for example, shift key) and moves through editable area then the editor stays focused.
At the same time if the integral element encountered on the way then the element is appended to the selection entirely.
If the compound element is encountered on the way while
# the user moves by words then the element is appended to the selection entirely
# the user moves by characters then the element's content is appended consecutively to the selection until the user reaches the end of the element.
## If the caret leaves the element then the element is appended to the selection entirely.
## If the user releases the selection modifier key then the compound element is focused while the caret stays inside of the element's content.
If the selection is started inside of compound element while is is focused then editor will take the focus once the caret leaves the compound element content.
===Mouse selection===
If the mouse is moved to extend the selection while the editor is focused then it stays focused.
At the same time if the special content element is encountered on the way then
*the element is appended to the selection entirely if the element is an integral,
*otherwise the element's content is appended to the selection until the mouse reaches the end of the element, then the element is appended to the selection entirely.
When mouse click is occurred on the special content element while 'add-to-selection' modifier key is pressed (like ctrl key) then the element is appended to the selection entirely, the element is not focused and no element's action is invoked.
The mouse can be used to add the part of the compound element's content to the selection, i.e. to move the caret into element's content and focus the element. There are few possible options. The end version of the proposal might define the one way only.
* Click and move approach when users presses the left mouse key on the element with pressed 'add-to-selection' modifier key and moves the mouse to extend the selection.
* Deep click approach when the user presses the left mouse key on the element with pressed 'add-to-selection' key and do not release the mouse key during some time.
* Double click or second click approach when the user presses the 'add-to-selection' modifier and clicks on the element twice.
If the selection is started inside of compound element while is is focused then editor will take the focus once the caret leaves the compound element content.


==Removing the selection from DOM==
==Removing the selection from DOM==
Confirmed users
1,396

edits

Navigation menu