MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / onPickKeyDown

Function onPickKeyDown

packages/core/src/runtime/picker.ts:220–224  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

218 }
219
220 function onPickKeyDown(event: KeyboardEvent): void {
221 if (event.key !== "Escape") return;
222 disablePickMode();
223 deps.postMessage({ source: "hf-preview", type: "pick-mode-cancelled" });
224 }
225
226 function enablePickMode(): void {
227 if (pickModeActive) return;

Callers

nothing calls this directly

Calls 2

disablePickModeFunction · 0.85
postMessageMethod · 0.80

Tested by

no test coverage detected