-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard only: how to escape textarea
effectively and move to next focusable?
#8
Comments
I strongly agree there should be a keyboard-only way of tabbing through to the next element, but strongly disagree that it should be just Tab, and that Some other key + Tab would enter spaces. This would be terrible for usability:
It would be interesting to see what other editors use, so that we can be externally consistent and use the same combination, if one exists. If there is none, then we can pick our own (Some combination of keys + Tab). |
@LeaVerou vs-code and any microsoft products that feature text entry typically use the keystroke https://microsoft.github.io/monaco-editor/ might be a good base here, since it is the editor behind vs code. I no longer recommend this approach, in chrome at least this is used to tab through the action bar. I would be against the following: |
Note:
|
|
@jasonday it's worth noting that this is a code editor, not a rich text editor. I agree that rich text editor's do not typically capture tab, but I have not seen a code editor that does not. Looking at the Ace9 discussion I could see the 4 step behavior noted as working.
That said, the discussion started 4 years ago and the current control on the ace9 site does not implement this pattern, so I'm not sure what the status of that incident is. I did verify that |
I am mildly opposed to introducing a mode for this, as a non-visible mode is a usability antipattern [NNGroup], and making it visible adds another UI component that users have to customize to fit their website. And it's well established in the literature that even visible modes lead to mode slips. @jasonday As @AgentEnder correctly points out, rich text editors and code editors are different use cases (though the lack of Tab capturing has given me a lot of pain in RT editors). Note that I said it's a rarer use case, not a "small" one. I.e. out of 100 tab presses in a code editor, how many are likely to be pressed with the intention of indentation and how many with the intention of changing focus? I'd argue that the focus change ones are a small minority. It is an important use case, that needs to have a solution, but for efficiency, the common case needs to be easier/faster to perform. Btw, I noticed that on a Mac, Alt + Tab works on my Atom Editor, as well as CodeMirror, and even Prism Live! However, we do need to come up with something for Windows, since Alt + Tab is taken over by the OS there. |
I'd argue that this article does not take accessibility into consideration and a 'mode slip' is unlikely to have negative consequences, whereas the keyboard trap is a more serious failure [WCAG 2.1.2]. In my opinion having a mode is a compromise, and is less likely to create havoc in comparison to other potential solutions. |
This article is not the only one talking about this; NNGroup is just more easily searchable. It's well established in HCI that modes are often a usability antipattern and that mode slips are common. |
Modifier + Tab might be hard to find a workable sln here, as we want to keep regular tab as is. I agree about the danger of modes and them not being obvious, vs code and visual studio both suffer from the ease of disabling That said, if we did go with All this said, it is your project and I don't want to over encroach. I'm just not sure what the better option would be here. |
Hi, Any updates on this issue ? Thanks :-) |
A couple of thoughts:
The text was updated successfully, but these errors were encountered: