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)
| 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 |
no test coverage detected