MCPcopy
hub / github.com/codeaashu/claude-code / dispatchClick

Method dispatchClick

src/ink/ink.tsx:1260–1264  ·  view source on GitHub ↗

* Hit-test the rendered DOM tree at (col, row) and bubble a ClickEvent * from the deepest hit node up through ancestors with onClick handlers. * Returns true if a DOM handler consumed the click. Gated on * altScreenActive — clicks only make sense with a fixed viewport where * nodeCache r

(col: number, row: number)

Source from the content-addressed store, hash-verified

1258 * nodeCache rects map 1:1 to terminal cells (no scrollback offset).
1259 */
1260 dispatchClick(col: number, row: number): boolean {
1261 if (!this.altScreenActive) return false;
1262 const blank = isEmptyCellAt(this.frontFrame.screen, col, row);
1263 return dispatchClick(this.rootNode, col, row, blank);
1264 }
1265 dispatchHover(col: number, row: number): void {
1266 if (!this.altScreenActive) return;
1267 dispatchHover(this.rootNode, col, row, this.hoveredNodes);

Callers

nothing calls this directly

Calls 2

isEmptyCellAtFunction · 0.85
dispatchClickFunction · 0.85

Tested by

no test coverage detected