MCPcopy Create free account
hub / github.com/WebDevSimplified/wordle-clone / handleMouseClick

Function handleMouseClick

script.js:15315–15330  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

15313}
15314
15315function handleMouseClick(e) {
15316 if (e.target.matches("[data-key]")) {
15317 pressKey(e.target.dataset.key)
15318 return
15319 }
15320
15321 if (e.target.matches("[data-enter]")) {
15322 submitGuess()
15323 return
15324 }
15325
15326 if (e.target.matches("[data-delete]")) {
15327 deleteKey()
15328 return
15329 }
15330}
15331
15332function handleKeyPress(e) {
15333 if (e.key === "Enter") {

Callers

nothing calls this directly

Calls 3

pressKeyFunction · 0.85
submitGuessFunction · 0.85
deleteKeyFunction · 0.85

Tested by

no test coverage detected