mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
Fix missusing for CodeMirror.Pass
This commit is contained in:
parent
efb188c9c1
commit
7aa21c8f19
1 changed files with 5 additions and 5 deletions
|
@ -9,10 +9,10 @@ var defaultExtraKeys = {
|
|||
else if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
|
||||
},
|
||||
"Cmd-S": function () {
|
||||
return CodeMirror.Pass
|
||||
return false;
|
||||
},
|
||||
"Ctrl-S": function () {
|
||||
return CodeMirror.Pass
|
||||
return false;
|
||||
},
|
||||
"Enter": "newlineAndIndentContinueMarkdownList",
|
||||
"Tab": function (cm) {
|
||||
|
@ -2905,19 +2905,19 @@ $(editor.getInputField())
|
|||
$(this).data('autocompleting', true);
|
||||
editor.setOption("extraKeys", {
|
||||
"Up": function () {
|
||||
return CodeMirror.Pass;
|
||||
return false;
|
||||
},
|
||||
"Right": function () {
|
||||
editor.doc.cm.execCommand("goCharRight");
|
||||
},
|
||||
"Down": function () {
|
||||
return CodeMirror.Pass;
|
||||
return false;
|
||||
},
|
||||
"Left": function () {
|
||||
editor.doc.cm.execCommand("goCharLeft");
|
||||
},
|
||||
"Enter": function () {
|
||||
return CodeMirror.Pass;
|
||||
return false;
|
||||
},
|
||||
"Backspace": function () {
|
||||
editor.doc.cm.execCommand("delCharBefore");
|
||||
|
|
Loading…
Reference in a new issue