From 82f443ee53d1fe37cb09a5c2571ad93e0c6cebcc Mon Sep 17 00:00:00 2001 From: ZhenDu <454858191@qq.com> Date: Tue, 20 Aug 2019 17:33:41 +0800 Subject: [PATCH] Update note.js --- public/js/app/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;