Mottie / Keyboard

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

Hover Issues on touch screen devices #815

Open vinacharya05 opened 2 years ago

vinacharya05 commented 2 years ago

Hi @Mottie

Actually I am using virtual-keyboard version 1.30.1.

When I run my application on touch screen devices and press on any key from virtual keyboard, the hover pseudo class which I am using for this class (.ui-keyboard-button) gets applied and it doesn't get removed when I leave the key. Can you provide your view on this issue and how this can be solved?

Thanks

Mottie commented 2 years ago

Hi @vinacharya05!

You can remove the buttonHover class by changing this option to be an empty string.

vinacharya05 commented 2 years ago

@Mottie Thank you for the response.

I wanted a behavior like when user presses a key from virtual keyboard on a touch screen device, press should be indicated with a color change (ex: I wanted a behavior which we usually achieve with :active pseudo class). Is that possible to achieve that kind of a behavior.