w3c / virtual-keyboard

VirtualKeyboard API
https://w3c.github.io/virtual-keyboard/
Other
16 stars 3 forks source link

Add a javascript property/API to query the support of the Virtual Keyboard #19

Open dpierangeli opened 1 year ago

dpierangeli commented 1 year ago

I think the system needs an API to let the user know if the device defaults to the virtual keyboard or has an attached physical keyboard.

PROBLEM

A touch device that could have a physical keyboard attached OR not.

I want to set the focus on an input ONLY if the device has the physical keyboard attached, because its useful BUT the automatic opening of the virtual keyboard is a distraction.

EXAMPLE:

I have searched if another solution exist to this problem but i've not found it, so i tink that a new API could help solving this problem.