Can I determine if a web user has a software keyboard using javascript?

I would like the search box on my site to automatically focus when the user loads the page, but I don’t like the way the keyboard pops up for users on smartphones / tablets. Is there any javascript property that I can use to determine if a physical keyboard is connected or not?

+6
source share
1 answer

I'm not sure about this ... but if you check the this link, it will show you how to determine if the user is on the mobile platform or not. can you make a decision based on this?

+1
source

Source: https://habr.com/ru/post/919354/


All Articles