MCPcopy Index your code
hub / github.com/github/docs / initClipboardEvent

Function initClipboardEvent

components/lib/events.ts:265–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263}
264
265function initClipboardEvent() {
266 ;['copy', 'cut', 'paste'].forEach((verb) => {
267 document.documentElement.addEventListener(verb, () => {
268 sendEvent({ type: EventType.clipboard, clipboard_operation: verb })
269 })
270 })
271}
272
273function initCopyButtonEvent() {
274 document.documentElement.addEventListener('click', (evt) => {

Callers 1

initializeEventsFunction · 0.85

Calls 1

sendEventFunction · 0.85

Tested by

no test coverage detected