Files
edx-platform/lms/static/js/wiki/accessible.js
2016-08-05 15:29:20 -04:00

12 lines
435 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'
};
})();