MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / moveFocus

Method moveFocus

packages/app-core/src/lib/cm-table.ts:862–871  ·  view source on GitHub ↗
(addr: CellAddress)

Source from the content-addressed store, hash-verified

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 {

Callers 1

onCellKeydownMethod · 0.95

Calls 1

placeCaretEndFunction · 0.85

Tested by

no test coverage detected