diff --git a/static/js/cherry_markdown.js b/static/js/cherry_markdown.js index 276ba595..de1b33cb 100644 --- a/static/js/cherry_markdown.js +++ b/static/js/cherry_markdown.js @@ -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) {