(e)
| 15313 | } |
| 15314 | |
| 15315 | function 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 | |
| 15332 | function handleKeyPress(e) { |
| 15333 | if (e.key === "Enter") { |
nothing calls this directly
no test coverage detected