codejar icon indicating copy to clipboard operation
codejar copied to clipboard

Allow keyboard navigation when capturing tab

Open buckett opened this issue 2 years ago • 1 comments

When capturing the tab key (enabled by default) this can block user who use keyboard navigation from escaping the editor and is an accessibility issue.

There is some discussion about how this can be handled in:

  • https://codemirror.net/examples/tab/
  • https://github.com/PrismJS/live/issues/8
  • https://ux.stackexchange.com/questions/39868/accessible-way-to-override-tab-key-in-textarea

The codemirror option of supporting escape, tab seems like a reasonable one (but maybe that's me showing my vi history).

buckett avatar Oct 01 '23 09:10 buckett

What about only capturing tab if something was modified?

antonmedv avatar Oct 02 '23 17:10 antonmedv