(addr: CellAddress)
| 860 | } |
| 861 | |
| 862 | private moveFocus(addr: CellAddress): void { |
| 863 | if (!this.dom) return |
| 864 | const el = this.dom.querySelector<HTMLElement>( |
| 865 | `[data-row="${addr.row}"][data-col="${addr.col}"]` |
| 866 | ) |
| 867 | if (el) { |
| 868 | el.focus() |
| 869 | placeCaretEnd(el) |
| 870 | } |
| 871 | } |
| 872 | |
| 873 | /** Resolve a cell element by address within this widget. */ |
| 874 | private cellEl(row: number, col: number): HTMLElement | null { |
no test coverage detected