Numpad comma separator support for Chips #2349
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
Currently, the
Chips
-Component has the following code:Besides
which
being deprecated, it also reports 110 for the numpad comma on German (and presumably others with , as decimal separator) keyboard layouts.event.key
reports,
.event.code
reportsNumpadDecimal
which is not helpful either. My suggestion would be to useevent.key
to check instead. Browser compatibility seems to be adequate. If wanted, I can create a PR for this.CodeSandbox Case (Bug Reports)
The bug is basic and already affects the demo https://primefaces.org/primevue/#/chips
Current behavior
,
does not work as separator when using the numpadExpected behavior
,
works as separator as documented, or the documentation needs a warning.Minimal reproduction of the problem with instructions
Change the keyboard to German (decimal separator is
,
in German), try to use the,
from the numpad (same position as.
in the US Layout as separator.What is the motivation / use case for changing the behavior?
It’s not working as documented
Please tell us about your environment:
Any OS using a German KB Layout
Vue version: 3.X
Latest
PrimeVue version: 3.4.X
Latest
Browser: Firefox, Chrome
The text was updated successfully, but these errors were encountered: