Accessibility
- Monaco is the editor in VS Code, and it carries VS Code's screen reader support: the content is exposed through a hidden text area that holds the focus, and Monaco switches to its screen reader mode when it detects one.
- The field's
labelis that text area's accessible name, and clicking the label puts the caret in the editor.helper,errorandwarningare its description, anderrormarks itaria-invalid. - Tab inserts a tab character inside the editor, as in any code editor. To move focus out with Tab instead, press Ctrl+M (Ctrl+Shift+M on macOS) to toggle Tab moving focus, as in VS Code. Say so near the editor wherever people who move by keyboard are expected.
- The focus ring is the field's own, drawn around the whole box.
- Without Monaco the field is a native
<textarea>with the same label and description, where Tab moves focus as usual.