Users should be able to trigger and edit every field using only the keyboard. Power users, who tend to use keyboards heavily, should be able to navigatethe form using Tab and make necessary edits, all without lifting their fingers off the keyboard. You can find detailed requirements for keyboard interaction pattern in W3C’s Authoring Practices for Design Patterns.
How to support accessibility for new OHRM
Tab order accessibility standards WCAG 2.0
Souses : https://www.w3.org/WAI/WCAG21/quickref/
- All content accessible: All functionality of the content is operable through a keyboard interface without requiring specific timings for individual keystrokes, except where the underlying function requires input that depends on the path of the user's movement and not just the endpoints..
- Must be keyboard trap free: If keyboard focus can be moved to a component of the page using a keyboard interface, then focus can be moved away from that component using only a keyboard interface, and, if it requires more than unmodified arrow or tab keys or other standard exit methods, the user is advised of the method for moving focus away. Eg: Esc key to close modal
- Active only on focus: The keyboard shortcut for a user interface component is only active when that component has focus.
- Meaningful focus order: If a Web page can be navigated sequentially and the navigation sequences affect meaning or operation, focusable components receive focus in an order that preserves meaning and operability.
- Focus visibility: Any keyboard operable user interface has a mode of operation where the keyboard focus indicator is visible.
- Components should not change context on focus: When any user interface component receives focus, it does not initiate a change of context.
General Keyboard controls for standard websites
Known Anomalistic Behaviours of tab Focus in the System and reasons
- Tab focus lost to the browser upon a modal being closed.
- Tab focus issues erupted by single loading multiple components.
- Tab focus jumps on the keyboard clicking on certain components.
Standard Modal behaviour
- Keyboard focus should switch from the base page to the modal and the focus should be initially on an interactive element on the modal.
- The initial focus element should be visually and DOM wise in a topmost position in the modal.
- All the interactive elements should be focusable and usable only using the keyboard.
- Focus traps should be used to keep the focus on the modal but the ability to close the modal anytime using Esc key should be implemented.
- After the modal is closed the focus should return to the element which triggered the modal. If it's not possible a suitable and convenient element should be getting the focus after the modal is closed.