From db0fba67b44f619de6b5bb8015342ef226a386de Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Wed, 14 Feb 2024 10:46:22 +0530 Subject: [PATCH] fixes select all in single selection mode on Ctrl-A press --- src/app/components/table/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 9f8c0fed217..027902da239 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -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);