accessible.js 421 Bytes
Newer Older
1 2 3 4
/* By default, CodeMirror turns tabs into indents, which makes it difficult for keyboard-only
   users to "tab through" elements on a page.  Including this file and setting keyMap to 
   "accessible" removes the "tab" from CodeMirror's default KeyMap to remedy this problem */

5 6 7 8 9 10
(function() {
  var keyMap = CodeMirror.keyMap.accessible = {
    "Tab": false,
    "Shift-Tab": false, 
    fallthrough: "default"
  };
11
})();