I have a Raspberry Pi 3 that is running an application using Kivy. There is a USB keyboard connected to allow text input within the application. Every time I type in a text box the letters are double typed. If I press and hold a key, the letter will double type as well. Outside of the application, the keyboard works normally (does not double type letters). It also works normally if I run the application on my PC. How do I prevent my keyboard from double typing within the application?
Your keyboard driver might be outdated or corrupt which is why there are some communication issues between the keyboard and the PC. To fix it, you should update the driver: Right-click Start > Device manager. Extend the Keyboard menu.
Outdated keyboard drivers on your Windows machine might affect the keyboard performance, and sometimes, you might end up with the keyboard typing multiple letters on Windows 10. You need to update the keyboard drivers to the latest version available.
The instantiation of the virtual keyboard is controlled by the configuration. Check keyboard_mode and keyboard_layout in the Configuration object. If you intend to create a widget that requires a keyboard, do not use the virtual keyboard directly, but prefer to use the best method available on the platform.
The config.ini file for kivy had an error. This file was located in the .kivy folder.
Previously under the input section we had the following lines:
[input]
mouse = mouse
mtdev_%(name)s=probesysfs,provider=mtdev
hid_%(name)s=probesysfs,provider=hidinput
%(name)s=probesysfs,provider=hidinput
Removing the last line shown above solved the double typing error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With