* @param {Core} hotInstance The Handsontable instance. * @param {TableMeta} tableMeta The table meta instance. * @param {Selection} selection The selection instance.
(hotInstance: HotInstance, tableMeta: GridSettings, selection: SelectionManager)
| 68 | * @param {Selection} selection The selection instance. |
| 69 | */ |
| 70 | constructor(hotInstance: HotInstance, tableMeta: GridSettings, selection: SelectionManager) { |
| 71 | this.hot = hotInstance; |
| 72 | this.tableMeta = tableMeta; |
| 73 | this.selection = selection; |
| 74 | this.eventManager = new EventManager(hotInstance); |
| 75 | |
| 76 | this.hot.addHook('afterDocumentKeyDown', (event: KeyboardEvent) => this.#onAfterDocumentKeyDown(event)); |
| 77 | this.hot.addHook('beforeCompositionStart', (event: KeyboardEvent) => this.#onAfterDocumentKeyDown(event)); |
| 78 | this.hot.view._wt.update( |
| 79 | 'onCellDblClick', (event: MouseEvent, coords: { isCell: () => boolean }, _elem: HTMLElement) => |
| 80 | this.#onCellDblClick(event, coords) |
| 81 | ); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Get active editor. |
nothing calls this directly
no test coverage detected