Mottie / Keyboard

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

Automatically opening keyboard #797

Closed oscardimanno closed 1 year ago

oscardimanno commented 3 years ago

Hi, thanks for this useful library.

I'm having a problem, i'm using this keyboard in a form with some required input fields. When i have empty fields and i submit the form the keyboard will automatically open, and i don't want this. There are a parameter to setup this?

Mottie commented 3 years ago

Hi @oscardimanno!

The openOn option is set to 'focus' by default. I'm not sure how empty fields would cause the keyboard to open unless you have something in your code that focuses those inputs. Validation code maybe?