diff --git a/edit.js b/edit.js index 2d82defb..c06e27f9 100644 --- a/edit.js +++ b/edit.js @@ -101,6 +101,13 @@ document.addEventListener("scroll", function(e) { } }); +document.addEventListener("keydown", function(e) { + if (e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey && e.keyCode == 83) { + e.preventDefault(); + save(); + } +}); + function makeDirty() { dirty = true; }