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

Wrong character when using non-English (Farsi) keyboard #1068

Closed
ousmorez opened this issue Nov 8, 2022 · 0 comments
Closed

Wrong character when using non-English (Farsi) keyboard #1068

ousmorez opened this issue Nov 8, 2022 · 0 comments
Labels

Comments

@ousmorez
Copy link
Contributor

ousmorez commented Nov 8, 2022

Describe the bug
When we try to enter a non-English word for example Persian (Farsi), this happens:
While the keyboard is set on Farsi language, open a select box and then select one of the options. Then at that moment try to write something, as you see in the GIF below, the first letter is English and then the second letter and the rest of them is Persian (Farsi).
choicejs-bug

Also, if you try to enter a number (numbers in the image below), the first character will be an English letter, then the second character and the rest will be numbers.

71Va9DgRgwL SL1500

To Reproduce

  1. Set your keyboard on Persian (Farsi)
    See how to add languages to keyboard on windows 10/11 :
    https://support.microsoft.com/en-us/windows/manage-the-input-and-display-language-settings-in-windows-12a10cb4-8626-9b77-0ccb-5013e0c7c7a2#:~:text=Select%20the%20Start%20button%2C%20then,keyboard%20you%20want%20to%20add.
    Steps to reproduce the behavior:
  2. Go to Choicejs
  3. Click on 'Right-to-left'
  4. Select 'Choice1'
  5. Type something
  6. First letter is English and the rest of the letters is Persian (Farsi)

Expected behavior
I expected to see only Farsi (Persian) characters on the screen.

Screenshots
choicejs-bug

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: Latest

I need to use Choicejs asap, if someone tell me a solution I can fix it in my project, I use it in formiojs and I can fix it externally.
If I find the solution myself, I'll post a merge request here, but I need help.

@ousmorez ousmorez added the bug label Nov 8, 2022
@ousmorez ousmorez changed the title Input problem when using non-English (Farsi) keyboard Wrong Character when using non-English (Farsi) keyboard Nov 8, 2022
@ousmorez ousmorez changed the title Wrong Character when using non-English (Farsi) keyboard Wrong character when using non-English (Farsi) keyboard Nov 8, 2022
@Xon Xon closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants