(e)
| 15330 | } |
| 15331 | |
| 15332 | function handleKeyPress(e) { |
| 15333 | if (e.key === "Enter") { |
| 15334 | submitGuess() |
| 15335 | return |
| 15336 | } |
| 15337 | |
| 15338 | if (e.key === "Backspace" || e.key === "Delete") { |
| 15339 | deleteKey() |
| 15340 | return |
| 15341 | } |
| 15342 | |
| 15343 | if (e.key.match(/^[a-z]$/)) { |
| 15344 | pressKey(e.key) |
| 15345 | return |
| 15346 | } |
| 15347 | } |
| 15348 | |
| 15349 | function pressKey(key) { |
| 15350 | const activeTiles = getActiveTiles() |
nothing calls this directly
no test coverage detected