MCPcopy Create free account
hub / github.com/MarsWang42/Awel / handleAnnotationKeydown

Function handleAnnotationKeydown

packages/host/src/annotation.ts:179–188  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

177}
178
179function 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

Callers

nothing calls this directly

Calls 1

cleanupAnnotationOverlayFunction · 0.85

Tested by

no test coverage detected