fix: 优化cherry-markdown快捷键 ctrl+s进行保存 (#969)

pull/975/head
zhanzhenping 2024-07-23 17:01:41 +08:00 committed by GitHub
parent 1a98d15212
commit cd9667bba7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -637,6 +637,13 @@ $(function () {
}
$("#documentTemplateModal").modal('hide');
});
document.addEventListener('keydown', function(event) {
if (event.ctrlKey && event.key === 's') {
event.preventDefault();
saveDocument(true, null);
}
});
});
function myFileUpload(file, callback) {