(e: KeyboardEvent)
| 177 | } |
| 178 | |
| 179 | function handleAnnotationKeydown(e: KeyboardEvent): void { |
| 180 | if (e.key === 'Escape') { |
| 181 | if (annotationTextInput) { |
| 182 | annotationTextInput.remove(); |
| 183 | annotationTextInput = null; |
| 184 | } else { |
| 185 | cleanupAnnotationOverlay(); |
| 186 | } |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | // ─── Toolbar ────────────────────────────────────────────────── |
| 191 |
nothing calls this directly
no test coverage detected