AutoComplete: NumpadEnter is not recognised #3816
Labels
Component: Accessibility
Issue or pull request is related to WCAG or ARIA
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the bug
<NumpadEnter>
is not recognised by AutoComplete component.Autocomplete
onKeyDown
monitorsevent.code
in which there is a difference between<Enter>
and<NumpadEnter>
and thus cannot be used to select an auto completed item.Instead
onKeyDown
should switch againstevent.key
where both Enter keys will result in aEnter
event key.The issue is located here:
primevue/components/lib/autocomplete/AutoComplete.vue
Line 444 in 8a6c3df
Reproducer
https://codesandbox.io/p/sandbox/prod-snow-8msdfd
PrimeVue version
3.26.1
Vue version
3.x
Language
ALL
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Type 'abc' into the autocomplete and press the
Enter
key adjacent the number pad on a full size keyboard.Expected behavior
Highlighted autocomplete item should be selected.
The text was updated successfully, but these errors were encountered: