Add tooltip styles; allow for both c and C to be pressed for clear

This commit is contained in:
lolabird 2023-12-28 11:41:43 -07:00
commit 574e15e8a1
3 changed files with 27 additions and 3 deletions

View file

@ -202,7 +202,7 @@ function handleKeys(e) {
button = document.querySelector("#dec");
} else if (e.key === "Backspace" || e.key === "Delete") {
button = document.querySelector(".entry");
} else if (e.key === "c" || e.key === "Escape") {
} else if (e.key === "c" || e.key === "C" || e.key === "Escape") {
button = document.querySelector(".all");
} else if (operators.hasOwnProperty(e.key)) {
e.preventDefault();