Files
edx-platform/lms/static/js/wiki/accessible.js
Eric Fischer 5bc6b31e29 eslint --fix
2017-12-08 14:38:41 -05:00

12 lines
433 B
JavaScript

/* 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 */
(function() {
var keyMap = CodeMirror.keyMap.accessible = {
Tab: false,
'Shift-Tab': false,
fallthrough: 'default'
};
}());