Mottie / Keyboard

Virtual Keyboard using jQuery ~
http://mottie.github.io/Keyboard/
Other
1.77k stars 722 forks source link

Physical Keyboard input duplicated by virtual keyboard #810

Closed pilz97 closed 2 years ago

pilz97 commented 2 years ago

I am using the virtual keyboard in my angular application. The users are able to use an physical keyboard or the virtual keyboard.

In some cases I use the virtual keyboard with alwaysOpen = true, and there i have an issue. When I make the input via the virtual keyboard everything works fine, but when i type for example "1" with the pysical keyboard, i get to input events "1" and then again "1", so then my value in the input elment is "11" instead just "1".

Now i figgured out in the playground, that the alwaysOpen-Mode works fine since you have initialFocus = true. When you make alwaysOpen = true and initialFocus = false, (and typing with physical keyboard instead virtual one) than you get the issue with the duplicated inputs.