From fec53060377b3bcd94ce3291f4368fb6ea686c5c Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 15 Mar 2015 01:05:02 +0300 Subject: [PATCH] Editor: make Ctrl-S work in input boxes --- edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();