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

This commit is contained in:
zhanzhenping 2024-07-22 10:33:19 +08:00
parent 1a98d15212
commit bec147d25b

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) {