MCPcopy Create free account
hub / github.com/FormidableLabs/use-editable / isUndoRedoKey

Function isUndoRedoKey

src/useEditable.ts:27–28  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

25};
26
27const isUndoRedoKey = (event: KeyboardEvent): boolean =>
28 (event.metaKey || event.ctrlKey) && !event.altKey && event.code === 'KeyZ';
29
30const toString = (element: HTMLElement): string => {
31 const queue: Node[] = [element.firstChild!];

Callers 2

onKeyDownFunction · 0.85
onKeyUpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…