dictionaire + fix the delete button
This commit is contained in:
@@ -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