diff --git a/components/lib/listbox/ListBox.js b/components/lib/listbox/ListBox.js index b36b33e1a0..fb8e2d4e41 100644 --- a/components/lib/listbox/ListBox.js +++ b/components/lib/listbox/ListBox.js @@ -454,7 +454,7 @@ export const ListBox = React.memo( break; default: - if (props.multiple && event.code === 'KeyA' && metaKey) { + if (props.multiple && event.key === 'a' && metaKey) { const value = visibleOptions.filter((option) => isValidOption(option)).map((option) => getOptionValue(option)); updateModel(event, value); diff --git a/components/lib/multiselect/MultiSelect.js b/components/lib/multiselect/MultiSelect.js index 3cb367866e..3157ddd02e 100644 --- a/components/lib/multiselect/MultiSelect.js +++ b/components/lib/multiselect/MultiSelect.js @@ -356,7 +356,7 @@ export const MultiSelect = React.memo( break; default: - if (event.code === 'KeyA' && metaKey) { + if (event.key === 'a' && metaKey) { const value = visibleOptions.filter((option) => isValidOption(option)).map((option) => getOptionValue(option)); updateModel(event, value, value);