Make tab or shift-tab leave code mirror unfocused

For accessibility we’d like tab and shift-tab to leave CodeMirror unfocused and go to the next/previous field in the form containing CM. How can I do that? Thanks

Add an option like this:

  extraKeys: {Tab: false, "Shift-Tab": false}

I keep trying to get tabs to focus on the CodeMirror Editor but it keeps shifting to other focusable elements, here is a link to what I mean:

  • Your question has nothing to do with this thread (except also relating to the tab key). Please just start a fresh topic next time.

  • See CodeMirror Language Config Example

Sorry about that. I have created a new topic, here is the link: The keymap defaultTabBinding doesn't work.