Skip to content

Commit

Permalink
Merge branch 'master' into style
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzhenping committed Jul 23, 2024
2 parents 1d420ba + cd9667b commit 04017c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions static/js/cherry_markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 04017c7

Please sign in to comment.