Skip to content

Commit c2fb8ac

Browse files
authored
Merge pull request #16928 from IgniteUI/iminchev/elements-cell-activation-20.1.x
1 parent 60f3732 commit c2fb8ac

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

projects/igniteui-angular/src/lib/grids/cell.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,7 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT
11731173
if (this.grid.isCellSelectable && shouldEmitSelection) {
11741174
this.zone.run(() => this.grid.selected.emit({ cell: this.getCellType(), event }));
11751175
}
1176+
11761177
}
11771178

11781179
/**

projects/igniteui-angular/src/lib/grids/grid-navigation.service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,16 @@ export class IgxGridNavigationService {
102102
this.grid.selectionService.keyboardStateOnKeydown(this.activeNode, shift, shift && key === 'tab');
103103
}
104104
const position = this.getNextPosition(this.activeNode.row, this.activeNode.column, key, shift, ctrl, event);
105+
const shouldNotifyVirtualizedKeyboardSelection =
106+
ctrl && (key === 'arrowup' || key === 'up' || key === 'arrowdown' || key === 'down') &&
107+
this.shouldPerformVerticalScroll(position.rowIndex, position.colIndex);
105108
if (NAVIGATION_KEYS.has(key)) {
106109
event.preventDefault();
107110
this.navigateInBody(position.rowIndex, position.colIndex, (obj) => {
108111
obj.target.activate(event);
112+
if (shouldNotifyVirtualizedKeyboardSelection) {
113+
this.grid.notifyChanges();
114+
}
109115
});
110116
}
111117
}

0 commit comments

Comments
 (0)