dictionaire + fix the delete button
This commit is contained in:
+2
-2
@@ -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%;
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user