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

Method handleMouseDown

src/server/web/public/terminal.js:2106–2114  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

2104 return d.isMac ? e3.altKey && this._optionsService.rawOptions.macOptionClickForcesSelection : e3.shiftKey;
2105 }
2106 handleMouseDown(e3) {
2107 if (this._mouseDownTimeStamp = e3.timeStamp, (2 !== e3.button || !this.hasSelection) && 0 === e3.button) {
2108 if (!this._enabled) {
2109 if (!this.shouldForceSelection(e3)) return;
2110 e3.stopPropagation();
2111 }
2112 e3.preventDefault(), this._dragScrollAmount = 0, this._enabled && e3.shiftKey ? this._handleIncrementalClick(e3) : 1 === e3.detail ? this._handleSingleClick(e3) : 2 === e3.detail ? this._handleDoubleClick(e3) : 3 === e3.detail && this._handleTripleClick(e3), this._addMouseDownListeners(), this.refresh(true);
2113 }
2114 }
2115 _addMouseDownListeners() {
2116 this._screenElement.ownerDocument && (this._screenElement.ownerDocument.addEventListener("mousemove", this._mouseMoveListener), this._screenElement.ownerDocument.addEventListener("mouseup", this._mouseUpListener)), this._dragScrollIntervalTimer = this._coreBrowserService.window.setInterval((() => this._dragScroll()), 50);
2117 }

Callers 1

openMethod · 0.80

Calls 9

shouldForceSelectionMethod · 0.80
stopPropagationMethod · 0.80
preventDefaultMethod · 0.80
_handleSingleClickMethod · 0.80
_handleDoubleClickMethod · 0.80
_handleTripleClickMethod · 0.80
refreshMethod · 0.45

Tested by

no test coverage detected