dictionaire + fix the delete button
This commit is contained in:
+2
-2
@@ -47,8 +47,8 @@ body{
|
||||
grid-column: span 3;
|
||||
}
|
||||
.key > svg {
|
||||
width: 1.50em;
|
||||
height: 1.50em;
|
||||
width: 1.70em;
|
||||
height: 1.70em;
|
||||
}
|
||||
.key:hover, .key:focus{
|
||||
--lightness-offset: 10%;
|
||||
|
||||
@@ -98,17 +98,17 @@ function stopInteraction() {
|
||||
}
|
||||
|
||||
function handleMouseClick(e) {
|
||||
if (e.target.matches("[data-key]")) {
|
||||
if (e.target.closest("[data-key]")) {
|
||||
pressKey(e.target.dataset.key)
|
||||
return
|
||||
}
|
||||
|
||||
if (e.target.matches("[data-enter]")) {
|
||||
if (e.target.closest("[data-enter]")) {
|
||||
submitGuess()
|
||||
return
|
||||
}
|
||||
|
||||
if (e.target.matches("[data-delete]")) {
|
||||
if (e.target.closest("[data-delete]")) {
|
||||
deleteKey()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user