Commit a765c565 authored by Michael Murtaugh's avatar Michael Murtaugh

toLowerCase for chromium

parent f86dae25
......@@ -39,13 +39,13 @@ window.addEventListener("DOMContentLoaded", function () {
// console.log("ready");
document.addEventListener("keypress", function (e) {
// console.log("keypress", e);
if (e.ctrlKey && e.key == "s") {
if (e.ctrlKey && e.key.toLowerCase() == "s") {
e.preventDefault();
// e.stopPropagation();
// console.log("save");
save();
}
if (e.ctrlKey && e.key == "e") {
if (e.ctrlKey && e.key.toLowerCase() == "e") {
e.preventDefault();
// TOGGLE CONTENTEDITABLE
var cv = document.body.getAttribute("contenteditable");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment