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

Function isEditableShortcutTarget

packages/app-core/src/App.tsx:118–125  ·  view source on GitHub ↗
(target: EventTarget | null)

Source from the content-addressed store, hash-verified

116}
117
118function isEditableShortcutTarget(target: EventTarget | null): boolean {
119 if (!(target instanceof Element)) return false
120 return Boolean(
121 target.closest(
122 'input, textarea, select, [contenteditable="true"], .cm-editor'
123 )
124 )
125}
126
127const Editor = lazy(async () => {
128 const module = await loadEditorModule()

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected