Open
Description
Increasing Access
To improve accessibility, the code editor on the site does not use tab
for indent. This way, tab
key can be used for navigation by, for example, screenreaders and other users who rely on keyboards for navigation. You can check out any page with an editable code snippet, and try to use tab
both inside and outside the code editor to see what it currently does.
However, tab
could be used in the code editor to indent if esc
can be used to get out of the editor mode. This would avoid the keyboard trap that was the original accessibility problem (WCAG Success Criterion 2.1.2: No Keyboard Trap), but it's not really intuitive, so it should not be the default behavior.
Most appropriate sub-area of p5.js?
Home
Feature request details
Proposed behavior:
- Current behavior stays as a default, which is
tab
is used for navigation and not indent - Under the "Accessibility" tab, there is a new entry, "No tab indent," which is checked by default.
- When this is NOT checked, the user should be able to use
tab
to navigate into the code editor, and thenesc
to get out of the code editor. This still avoids keyboard traps.
Previous discussion and further reading:
Activity