MCPcopy Create free account
hub / github.com/dailydotdev/apps / onKey

Function onKey

packages/shared/src/features/feedWidgets/useRailEditing.ts:496–501  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

494 };
495 const onCancel = () => finish(false);
496 const onKey = (event: KeyboardEvent) => {
497 if (event.key === 'Escape') {
498 event.stopPropagation();
499 finish(false);
500 }
501 };
502
503 // Widgets allow sideways panning so the rail still swipes in edit mode;
504 // once a drag is live, the finger moves the widget, not the rail.

Callers

nothing calls this directly

Calls 1

finishFunction · 0.70

Tested by

no test coverage detected