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

Method openCellMenu

packages/app-core/src/lib/cm-table.ts:1219–1230  ·  view source on GitHub ↗

Open the table action menu for the focused cell (Vim NORMAL `m`), * anchored at the cell. The menu itself is keyboard-navigable.

(editable: HTMLElement, row: number, col: number)

Source from the content-addressed store, hash-verified

1217 /** Open the table action menu for the focused cell (Vim NORMAL `m`),
1218 * anchored at the cell. The menu itself is keyboard-navigable. */
1219 private openCellMenu(editable: HTMLElement, row: number, col: number): void {
1220 this.syncFromDom()
1221 const rect = editable.getBoundingClientRect()
1222 openTableContextMenu({
1223 x: rect.left,
1224 y: rect.bottom,
1225 row,
1226 col,
1227 model: this.model,
1228 apply: (next, focus) => this.applyModel(next, focus)
1229 })
1230 }
1231
1232 ignoreEvent(): boolean {
1233 return true

Callers 1

onCellKeydownMethod · 0.95

Calls 3

syncFromDomMethod · 0.95
applyModelMethod · 0.95
openTableContextMenuFunction · 0.90

Tested by

no test coverage detected