UNPKG

handsontable

Version:

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

19 lines (18 loc) 553 B
"use strict"; exports.__esModule = true; const command = exports.command = { name: 'extendCellsSelectionRight', callback(hot) { const { selection } = hot; const { highlight } = hot.getSelectedRangeActive(); if (!selection.isSelectedByRowHeader() && !selection.isSelectedByCorner() && (highlight.isCell() || highlight.isHeader() && selection.isSelectedByColumnHeader())) { selection.markSource('keyboard'); selection.transformEnd(0, hot.getDirectionFactor()); selection.markEndSource(); } } };