MCPcopy Create free account
hub / github.com/handsontable/handsontable / #onCellDblClick

Method #onCellDblClick

handsontable/src/editorManager.ts:351–359  ·  view source on GitHub ↗

* OnCellDblClick callback. * * @param {MouseEvent} event The mouse event object. * @param {object} coords The cell coordinates.

(event: MouseEvent, coords: { isCell: () => boolean } | null)

Source from the content-addressed store, hash-verified

349 * @param {object} coords The cell coordinates.
350 */
351 #onCellDblClick(event: MouseEvent, coords: { isCell: () => boolean } | null) {
352 if (coords?.isCell()) {
353 if (this.hot.getShortcutManager().isCtrlPressed()) {
354 this.clearActiveEditor();
355 } else {
356 this.openEditor(null, event, true);
357 }
358 }
359 }
360
361 /**
362 * Destroy the instance.

Callers 1

constructorMethod · 0.95

Calls 5

clearActiveEditorMethod · 0.95
openEditorMethod · 0.95
isCellMethod · 0.80
isCtrlPressedMethod · 0.80
getShortcutManagerMethod · 0.65

Tested by

no test coverage detected