Editor: make Ctrl-S work in input boxes
This commit is contained in:
parent
603da2736f
commit
fec5306037
2
edit.js
2
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) {
|
if (e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey && e.keyCode == 83) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
save();
|
save();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user