Repository navigation
Accessibility - keyboard traps #5109
Replies: 1 comment
|
The relevant feature is documented as "Tab Trapping" in the Accessibility Guide: by default Tab inserts a character, and I couldn't find anything in the accessibility guide describing Shift+Tab as a documented exception to that toggle, so the asymmetry you're describing (Tab escapes forward, Shift+Tab doesn't escape backward, both after the same toggle) looks like a genuine bug rather than an intentional forward-only design, though I'd want that confirmed by someone who's actually traced the focus-trap code before calling it definitively a bug. I'd raise it as an issue with a minimal repro (toggle Tab Trapping, focus first element in editor, Shift+Tab, observe focus stays trapped) rather than a discussion, since "should be symmetric per the documented toggle but isn't" is a concrete, testable claim. On Escape specifically: the guide only documents Escape for returning focus to a specific position after using "Go to Next/Previous Error" (F8) or the Diff Review Pane, not as a general "exit the editor" shortcut, so that part isn't a gap in the docs, Escape genuinely isn't meant to be a blanket focus-trap release today. And your Ctrl+Shift+M one-handed concern on macOS is worth including in the same issue, that's a real ergonomics point independent of the Shift+Tab bug. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
The product I work on consumes the monaco-editor and we're currently ensuring accessibility compliance throughout our user experiences. One thing we noticed during our keyboard navigation testing is that user can get trapped once focus is inside the editor. We're aware of the shortcut
Ctrl+Shift+Mand thenTabthat allows focus to shift forward away from the editor so it's possible for the user to escape. However the same cannot be said for using the same shortcut and thenShift+Tabto go to previous element. There are a few things I wanted to start a discussion on and get some guidance, or even if this is a bug that I should raise an issue for.Esckey is not supported to remove focus from the editor, has this been considered at all or is there a conflict with using this shortcut or other standard recognised keys to be used as the main escape from focus?Ctrl+Shift+Mon Macbook keyboards would be rather difficult to execute with one hand for a user that requires this type of accessibility.Any thoughts, guidance and comments appreciated.
Thanks.
All reactions