MCPcopy
hub / github.com/callumalpass/tasknotes / show

Method show

src/components/TaskContextMenu.ts:2346–2353  ·  view source on GitHub ↗
(event: MouseEvent)

Source from the content-addressed store, hash-verified

2344 }
2345
2346 public show(event: MouseEvent): void {
2347 // Store the document reference from the event target to support pop-out windows
2348 // Use cross-window compatible instanceOf check
2349 if ((event.target as Node)?.instanceOf?.(HTMLElement)) {
2350 this.targetDoc = (event.target as HTMLElement).ownerDocument;
2351 }
2352 this.menu.showAtMouseEvent(event);
2353 }
2354
2355 public showAtElement(element: HTMLElement): void {
2356 // Store the document reference from the element to support pop-out windows

Callers 1

showTaskContextMenuFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected