MCPcopy Index your code
hub / github.com/codeaashu/claude-code / startSelection

Function startSelection

src/ink/selection.ts:79–98  ·  view source on GitHub ↗
(
  s: SelectionState,
  col: number,
  row: number,
)

Source from the content-addressed store, hash-verified

77}
78
79export function startSelection(
80 s: SelectionState,
81 col: number,
82 row: number,
83): void {
84 s.anchor = { col, row }
85 // Focus is not set until the first drag motion. A click-release with no
86 // drag leaves focus null → hasSelection/selectionBounds return false/null
87 // via the `!s.focus` check, so a bare click never highlights a cell.
88 s.focus = null
89 s.isDragging = true
90 s.anchorSpan = null
91 s.scrolledOffAbove = []
92 s.scrolledOffBelow = []
93 s.scrolledOffAboveSW = []
94 s.scrolledOffBelowSW = []
95 s.virtualAnchorRow = undefined
96 s.virtualFocusRow = undefined
97 s.lastPressHadAlt = false
98}
99
100export function updateSelection(
101 s: SelectionState,

Callers 2

handleMultiClickMethod · 0.85
handleMouseEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected