* Handle a drag-motion at (col, row). In char mode updates focus to the * exact cell. In word/line mode snaps to word/line boundaries so the * selection extends by word/line like native macOS. Gated on * altScreenActive for the same reason as dispatchClick.
(col: number, row: number)
| 1346 | * altScreenActive for the same reason as dispatchClick. |
| 1347 | */ |
| 1348 | handleSelectionDrag(col: number, row: number): void { |
| 1349 | if (!this.altScreenActive) return; |
| 1350 | const sel = this.selection; |
| 1351 | if (sel.anchorSpan) { |
| 1352 | extendSelection(sel, this.frontFrame.screen, col, row); |
| 1353 | } else { |
| 1354 | updateSelection(sel, col, row); |
| 1355 | } |
| 1356 | this.notifySelectionChange(); |
| 1357 | } |
| 1358 | |
| 1359 | // Methods to properly suspend stdin for external editor usage |
| 1360 | // This is needed to prevent Ink from swallowing keystrokes when an external editor is active |
nothing calls this directly
no test coverage detected