MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / isUndoShortcut

Function isUndoShortcut

packages/app-core/src/App.tsx:109–116  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

107}
108
109function isUndoShortcut(e: KeyboardEvent): boolean {
110 return (
111 e.key.toLowerCase() === 'z' &&
112 (e.metaKey || e.ctrlKey) &&
113 !e.shiftKey &&
114 !e.altKey
115 )
116}
117
118function isEditableShortcutTarget(target: EventTarget | null): boolean {
119 if (!(target instanceof Element)) return false

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected