MCPcopy
hub / github.com/NitroRCr/AIaW / on

Function on

src/utils/codejar.ts:104–107  ·  view source on GitHub ↗
(type: K, fn: (event: HTMLElementEventMap[K]) => void)

Source from the content-addressed store, hash-verified

102 }, 300)
103
104 const on = <K extends keyof HTMLElementEventMap>(type: K, fn: (event: HTMLElementEventMap[K]) => void) => {
105 listeners.push([type, fn])
106 editor.addEventListener(type, fn)
107 }
108
109 on('keydown', event => {
110 if (event.defaultPrevented) return

Callers 1

CodeJarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected