mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
fix: 编辑器快捷键保存重复
This commit is contained in:
parent
591f9e61fb
commit
6a63ceaecc
@ -456,14 +456,6 @@ export default {
|
||||
this.submitNewContent();
|
||||
}
|
||||
});
|
||||
editor.on('KeyDown', (e) => {
|
||||
if (e.metaKey || e.ctrlKey) {
|
||||
if (e.keyCode === 83) {
|
||||
e.preventDefault();
|
||||
this.$emit('editorSave', e);
|
||||
}
|
||||
}
|
||||
});
|
||||
editor.on('Change', (e) => {
|
||||
if (this.editor !== null) {
|
||||
if (this.getContent() !== this.value) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user