mirror of https://github.com/mindoc-org/mindoc.git
fix: 优化cherry-markdown快捷键 ctrl+s进行保存 (#969)
parent
1a98d15212
commit
cd9667bba7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue