if (this.context.disableMultiSelect) {
this.context.selectOneRow(index);
} else if ($event.ctrlKey || $event.metaKey /* mac command */) {
- if (this.context.toggleSelectOneRow(index)) {
- this.context.lastSelectedIndex = index;
- }
+ this.context.toggleSelectOneRow(index);
} else if ($event.shiftKey) {
// TODO shift range click
this.grid.onRowActivate.emit(row);
}
- performAction(action: GridToolbarAction) {
- action.action(this.context.getSelectedRows());
- }
-
// Apply row selection, track the new menu if needed,
// manually close any existing open menus, open selected menu.
onRowContextClick($event, row: any, contextMenu: NgbPopover) {