This content originally appeared on Digital A11Y and was authored by Raghavendra Satish Peri
Success Criterion 2.1.4 Character Key Shortcuts (Level A): If a keyboard shortcut is implemented in content using only letter (including upper- and lower-case letters), punctuation, number, or symbol characters, then at least one of the following is true:
- Turn off
A mechanism is available to turn the shortcut off;- Remap
A mechanism is available to remap the shortcut to include one or more non-printable keyboard keys (e.g., Ctrl, Alt);- Active only on focus
The keyboard shortcut for a user interface component is only active when that component has focus.
In recent years productivity has been the one of the key driving factor & as a result developers are building applications with shortcut keys. Developers implement shortcut keys that you can invoke & most of the functionality can be achieved without touching a mouse. Some of these shortcut keys trigger just with a single key or with a combination of keys. For example on YouTube you can pause the video by just pressing “K” but this key stroke conflicts with the screen reader. When the key “K” is pressed while a screen reader is running the shortcut key doesn’t trigger the “play” as it moves from one link to another link n NVDA.
Similarly, when people who use speech recognition software like dragon naturally speaking or similar software’s, they tend to spell the words out character by character & there is a higher probability that these shortcut keys that trigger with a single key will get triggered. The user cannot perform the task at hand due to these challenges. For example, In a transactions page, a single printable key “d” is assigned as a short cut key to delete a transaction. On the same page, the users can search transactions. When speech input users dictate the letters to input a search term and when they dictate “d”, instead of printing the character “d” in the search field, this might delete any transaction.
The intent of this success criterion is to provide the user with full control on how these character key shortcuts [single key events] can be managed. The SC has provided 3 specific guidelines to pass this success criterion,
- Turn off: A mechanism is available to turn the shortcut off;
- Remap: A mechanism is available to remap the shortcut to use one or more non-printable keyboard characters (e.g. Ctrl, Alt, etc.);
- Active only on focus: The keyboard shortcut for a user interface component is only active when that component has focus.
Gmail is a perfect example to manage these single character key shortcuts. For example, when the users are in the messages grid of the inbox, then ‘x’ will select any email and # will delete those selected emails. But both the shortcuts will not work outside the email grid.
Points to Remember
- Don’t use single character key shortcuts if possible.
- Provide a mechanism to turn off the character key shortcuts.
- design all the keyboard shortcuts with the combinations of non-printable keys.
- Let the user trigger the shortcut key only when the element has keyboard focus.
References
Understanding Success Criterion 2.1.4: Character Key Shortcuts
This content originally appeared on Digital A11Y and was authored by Raghavendra Satish Peri
Raghavendra Satish Peri | Sciencx (2020-05-26T15:21:29+00:00) Understanding SC 2.1.4 Character Key Shortcuts. Retrieved from https://www.scien.cx/2020/05/26/understanding-sc-2-1-4-character-key-shortcuts/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.