Edit style: save on Ctrl-S outside code blocks too

This commit is contained in:
tophf 2015-03-11 23:02:02 +03:00
parent c084ea3973
commit 464d3eb30d

View File

@ -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;
}