Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #11442 numpad decimal separator should support all keyboard layout #14653

Merged
merged 1 commit into from Feb 29, 2024

Conversation

zzzaaa
Copy link
Contributor

@zzzaaa zzzaaa commented Jan 29, 2024

Issue

(#11442 #12626)
Users with multiple keyboard layouts may encounter a problem where the NumPad decimal separator changes to match the locale-based decimal separator.
According to the Mozilla Developer Network, the decimal separator for German, Russian, and Ukrainian keyboard layouts is a comma, while for English, it's a dot.

For instance, if a user's system locale is set to English but they occasionally switch to German, Russian, or Ukrainian, they may face confusion. The input number component expects a dot as the decimal separator, but the NumPad's decimal key provides a comma, leading to a common input error.

Solution

To address this issue, I've implemented a solution that consistently captures the NumPad Decimal input as the decimal separator, regardless of the user's keyboard layout or system locale.

Fixes #12626

Copy link

vercel bot commented Jan 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Jan 29, 2024 4:17pm

@cetincakiroglu cetincakiroglu merged commit 8f3c94a into primefaces:master Feb 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants