Commit 99321fc4 by Julia Hansbrough

Fixed alt-tab, alt-shift-tab, shift-tab

parent 42615692
...@@ -2,9 +2,25 @@ ...@@ -2,9 +2,25 @@
users to "tab through" elements on a page. Including this file and setting keyMap to 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 */ "accessible" removes the "tab" from CodeMirror's default KeyMap to remedy this problem */
var keyMap = CodeMirror.keyMap.accessible = { (function() {
"Left": "goCharLeft", "Right": "goCharRight", "Up": "goLineUp", "Down": "goLineDown", var keyMap = CodeMirror.keyMap.accessible = {
"End": "goLineEnd", "Home": "goLineStartSmart", "PageUp": "goPageUp", "PageDown": "goPageDown", "Left": "goCharLeft",
"Delete": "delCharRight", "Backspace": "delCharLeft", "Shift-Tab": "indentAuto", "Right": "goCharRight",
"Enter": "newlineAndIndent", "Insert": "toggleOverwrite" "Up": "goLineUp",
}; "Down": "goLineDown",
"End": "goLineEnd",
"Home": "goLineStartSmart",
"PageUp": "goPageUp",
"PageDown": "goPageDown",
"Delete": "delCharAfter",
"Backspace": "delCharBefore",
"Shift-Backspace": "delCharBefore",
"Alt-Tab": "insertTab",
"Alt-Shift-Tab": "insertTab",
"Tab": false,
"Shift-Tab": false,
"Enter": "newlineAndIndent",
"Insert": "toggleOverwrite",
fallthrough: "default"
};
})();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment