dammit part2

This commit is contained in:
MrRenter
2015-03-17 03:09:34 -04:00
parent 6a2209b9b4
commit 9a5c7a0ce6

View File

@ -22,8 +22,8 @@ var editor = myCodeMirror;
// Hijack tab key to insert two spaces instead
editor.setOption("extraKeys", {
Tab: function(cm) {
var spaces = Array(cm.getOption("indentUnit") + 1).join(" ");
cm.replaceSelection(spaces);
var spaces = Array(cm.getOption("indentUnit") + 1).join(" ");
cm.replaceSelection(spaces);
},
"Ctrl-Enter": function() {
return false;