Accessibility/EditorBehaviourOnUserInput: Difference between revisions

Line 91: Line 91:
This section is applicable to interactive approach only.
This section is applicable to interactive approach only.


When the rich element is focused and no action can be performed on the pressed key then editor rules should be applied.
When the rich element is focused and no action can be performed via keyboard then editor rules should be applied.


The editor implementation should have the ability to check whether action can be performed or not to accomplish this requirement. The possible approach is the element should prevent default action of an event (DOMEvent.preventDefault) if it performs an action on this event. If there is no action then the editor processes this event and performs editor's actions accordingly.
The editor implementation should have the ability to check whether an action (interactivity) can be performed or not in order to accomplish this requirement. One possible approach is the element should prevent default action of an event (DOMEvent.preventDefault) if it performs an action on this event. If there is no action then the editor processes this event and performs editor's actions accordingly.


===When the element is compound===
===When the element is compound===
Confirmed users
1,085

edits