dictionaire + fix the delete button

This commit is contained in:
2025-07-31 22:33:49 -04:00
parent 9ff25fdd48
commit c8bfb1f0db
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ body{
grid-column: span 3; grid-column: span 3;
} }
.key > svg { .key > svg {
width: 1.50em; width: 1.70em;
height: 1.50em; height: 1.70em;
} }
.key:hover, .key:focus{ .key:hover, .key:focus{
--lightness-offset: 10%; --lightness-offset: 10%;
+3 -3
View File
@@ -98,17 +98,17 @@ function stopInteraction() {
} }
function handleMouseClick(e) { function handleMouseClick(e) {
if (e.target.matches("[data-key]")) { if (e.target.closest("[data-key]")) {
pressKey(e.target.dataset.key) pressKey(e.target.dataset.key)
return return
} }
if (e.target.matches("[data-enter]")) { if (e.target.closest("[data-enter]")) {
submitGuess() submitGuess()
return return
} }
if (e.target.matches("[data-delete]")) { if (e.target.closest("[data-delete]")) {
deleteKey() deleteKey()
return return
} }