mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Fix Esc in Vim mode
This commit is contained in:
parent
14c6778715
commit
3aa9204e57
1 changed files with 5 additions and 4 deletions
|
@ -5,13 +5,14 @@ var defaultExtraKeys = {
|
|||
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
|
||||
},
|
||||
"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 () {
|
||||
return CodeMirror.PASS
|
||||
return CodeMirror.Pass
|
||||
},
|
||||
"Ctrl-S": function () {
|
||||
return CodeMirror.PASS
|
||||
return CodeMirror.Pass
|
||||
},
|
||||
"Enter": "newlineAndIndentContinueMarkdownList",
|
||||
"Tab": function(cm) {
|
||||
|
@ -2928,4 +2929,4 @@ $(editor.getInputField())
|
|||
$(this).data('autocompleting', false);
|
||||
editor.setOption("extraKeys", defaultExtraKeys);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue