commit
9418e446b1
1 changed files with 5 additions and 4 deletions
|
@ -5,13 +5,14 @@ var defaultExtraKeys = {
|
||||||
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
|
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
|
||||||
},
|
},
|
||||||
"Esc": function(cm) {
|
"Esc": function(cm) {
|
||||||
if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
|
if (cm.getOption('keyMap').substr(0, 3) === 'vim') return CodeMirror.Pass;
|
||||||
|
else if(cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
|
||||||
},
|
},
|
||||||
"Cmd-S": function () {
|
"Cmd-S": function () {
|
||||||
return CodeMirror.PASS
|
return CodeMirror.Pass
|
||||||
},
|
},
|
||||||
"Ctrl-S": function () {
|
"Ctrl-S": function () {
|
||||||
return CodeMirror.PASS
|
return CodeMirror.Pass
|
||||||
},
|
},
|
||||||
"Enter": "newlineAndIndentContinueMarkdownList",
|
"Enter": "newlineAndIndentContinueMarkdownList",
|
||||||
"Tab": function(cm) {
|
"Tab": function(cm) {
|
||||||
|
|
Loading…
Reference in a new issue