Skip to content

Commit 2071e6c

Browse files
volvachevEgor Volvachev
authored andcommitted
fix(material/list): add command+A for MacOs "select all" functionality.
Fixes a bug in Angular Material `list` when using MacOs `command`+`a` does not work for 'select all functionality'. Fixes #24781
1 parent 4193037 commit 2071e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/list/selection-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ export class MatSelectionList
573573
if (
574574
keyCode === A &&
575575
this.multiple &&
576-
hasModifierKey(event, 'ctrlKey') &&
576+
hasModifierKey(event, 'ctrlKey', 'metaKey') &&
577577
!manager.isTyping()
578578
) {
579579
const shouldSelect = this.options.some(option => !option.disabled && !option.selected);

0 commit comments

Comments
 (0)