in components/js/selectionModel.ts [172:184]
private updateSelectedRanges(ranges: Slick.Range[]): void {
// Set focus to this grid if it's not already somewhere inside it.
if (ranges && ranges.length !== 0 && this._grid && this._grid.getCanvasNode() && !this._grid.getCanvasNode().contains(document.activeElement)) {
this._grid.focus();
}
if (SelectionModel.areRangesIdentical(ranges, this._ranges)) {
return;
}
this._ranges = ranges;
this.onSelectedRangesChanged.notify(this._ranges);
}