diff --git a/edit.js b/edit.js index ee0e8782..3974257b 100644 --- a/edit.js +++ b/edit.js @@ -196,7 +196,7 @@ document.addEventListener("scroll", function(e) { } }); -document.addEventListener("keydown", function(e) { +window.addEventListener("keydown", function(e) { if (e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey && e.keyCode == 83) { e.preventDefault(); save();