diff --git a/public/js/app/note.js b/public/js/app/note.js index 4fe52d87f..806ec02e5 100644 --- a/public/js/app/note.js +++ b/public/js/app/note.js @@ -1405,7 +1405,7 @@ Note.syncProcess = function(msg) { Note.saveNote = function(e) { var num = e.which ? e.which : e.keyCode; // 保存 - if ((e.ctrlKey || e.metaKey) && num == 83) { // ctrl + s or command + s + if ((e.ctrlKey || e.metaKey) && num == 83 && editorIsDirty()) { // ctrl + s or command + s incrSync(true); e.preventDefault(); return false;