What fresh hell is THIS now? - Patrick Lauke
[car] @garcialo Just wondering, for your shift+tab stew, did you stumble on an actual case before wondering about it? The case that tends to come up is the one where a multi-line text area needs to allow inserting "tab characters" into the text. I just wanted to share what we ended up with for our "code editor" widget, which needs to let the user type tab characters into the code they are editing, and also type tab/shift+tab to indent/outdent selected lines.
We needed another way to navigate out of the widget, so we looked to the Authoring Practices doc for guidance, and noticed that the Keyboard Interaction section for Rich Text Editor had a discussion about that very topic, starting with:
Optionally, if the developer wishes to provide the ability to insert a tab into the document, it is recommended one of the following methods be used…
We chose to prove the 2nd method. Our menu of keyboard shortcuts (and our accessibility doc) list the Control+M shortcut to toggle the use of Tab key between 2 modes: "Tab inserts tab characters" or "Tab navigates".
https://www.w3.org/TR/wai-aria-practices-1.1/#richtext