summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-04-28 11:10:09 +0800
committerCheng-Han, Wu2016-04-28 11:10:09 +0800
commit7aa21c8f19c043a1a0e106352857bc55dec12826 (patch)
tree3f9bff604e4b4cfd946efdb6cef1c3aef619693f /public
parentefb188c9c1c186cc6002091facd3918917e6257d (diff)
Fix missusing for CodeMirror.Pass
Diffstat (limited to '')
-rw-r--r--public/js/index.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/public/js/index.js b/public/js/index.js
index c3ed5f80..3f0ed593 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -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");