Selected text + tab = indent auto

Instead of single tabs
This commit is contained in:
Matt Pass
2014-09-26 12:44:06 +01:00
parent cc5cd166be
commit c141fc2864

View File

@@ -151,7 +151,9 @@ h2 {color: rgba(0,198,255,0.7)}
<script>
CodeMirror.keyMap.ICEcoder = {
// "Tab": "defaultTab", **Now used by Emmet**
"Tab": function(cm) {
return cm.somethingSelected() ? cm.execCommand("indentAuto") : CodeMirror.Pass // Falls through to default or Emmet plugin
},
"Shift-Tab": "indentLess",
"Ctrl-Space": "autocomplete",
"Ctrl-Up" : false,