Fix other CodeMirror.Pass usage

This commit is contained in:
Cheng-Han, Wu 2016-04-24 10:49:22 +08:00
parent 9418e446b1
commit 42ac80eb0e

View file

@ -2906,19 +2906,19 @@ $(editor.getInputField())
$(this).data('autocompleting', true); $(this).data('autocompleting', true);
editor.setOption("extraKeys", { editor.setOption("extraKeys", {
"Up": function () { "Up": function () {
return CodeMirror.PASS; return CodeMirror.Pass;
}, },
"Right": function () { "Right": function () {
editor.doc.cm.execCommand("goCharRight"); editor.doc.cm.execCommand("goCharRight");
}, },
"Down": function () { "Down": function () {
return CodeMirror.PASS; return CodeMirror.Pass;
}, },
"Left": function () { "Left": function () {
editor.doc.cm.execCommand("goCharLeft"); editor.doc.cm.execCommand("goCharLeft");
}, },
"Enter": function () { "Enter": function () {
return CodeMirror.PASS; return CodeMirror.Pass;
}, },
"Backspace": function () { "Backspace": function () {
editor.doc.cm.execCommand("delCharBefore"); editor.doc.cm.execCommand("delCharBefore");