UNPKG

handsontable

Version:

Handsontable is a JavaScript Data Grid available for React, Angular and Vue.

16 lines 502 B
export const command = { name: 'extendCellsSelectionLeft', callback(hot) { const { selection } = hot; const { highlight } = hot.getSelectedRangeLast(); if (!selection.isSelectedByRowHeader() && !selection.isSelectedByCorner() && (highlight.isCell() || highlight.isHeader() && selection.isSelectedByColumnHeader())) { selection.markSource('keyboard'); selection.transformEnd(0, -1 * hot.getDirectionFactor()); selection.markEndSource(); } } };