From b60a2abc0553ac2a0d58eaa2c90d6efb31ddcb13 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Thu, 3 Sep 2020 09:38:05 +0800 Subject: [PATCH] feat: block ctrl-s shortcut key --- src/store/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index e195733..bfc98f9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -91,7 +91,8 @@ const mutations = { const doc = formatDoc(editor.getValue(0)) localStorage.setItem('__editor_content', doc) editor.setValue(doc) - } + }, + 'Ctrl-S': function save(editor) {} } } ) @@ -118,7 +119,8 @@ const mutations = { }, { line: totalLines }) - } + }, + 'Ctrl-S': function save(editor) {} } } )