Detecting a physical keyboard from the browser

64 Views Asked by At

I'm creating a web page which will only be of use to users with a physical keyboard. It makes no sense to use it if you have an on-screen keyboard. (Think typing-tutor type webapp.)

Is there any way to detect that a physical keyboard is present, from Javascript?

If not, what is the most reliable way to detect that the browser is running on a tablet or phone, rather than a desktop/laptop?

0

There are 0 best solutions below