Editor: make Ctrl-S work in input boxes

This commit is contained in:
tophf 2015-03-15 01:05:02 +03:00
parent 603da2736f
commit fec5306037

View File

@ -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) { if (e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey && e.keyCode == 83) {
e.preventDefault(); e.preventDefault();
save(); save();