Skip to content

Commit

Permalink
Merge pull request #15 from navedqb/14795--fix-keyA-select-all-in-sin…
Browse files Browse the repository at this point in the history
…gle-mode

fix: fix select all in single selection mode on Ctrl-A press
  • Loading branch information
navedqb authored Feb 14, 2024
2 parents d78077f + db0fba6 commit 2468d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3582,7 +3582,7 @@ export class SelectableRow implements OnInit, OnDestroy {
break;

default:
if (event.code === 'KeyA' && (event.metaKey || event.ctrlKey)) {
if (event.code === 'KeyA' && (event.metaKey || event.ctrlKey) && this.dt.selectionMode === 'multiple') {
const data = this.dt.dataToRender(this.dt.processedData);
this.dt.selection = [...data];
this.dt.selectRange(event, data.length - 1);
Expand Down

0 comments on commit 2468d35

Please sign in to comment.