How can I check if caplock is turned on without waiting for the user to type a character using JavaScript?

Gmail shows the icon in Chrome when the user closes the window and focuses on the password field, how can they do this?

There are many related questions, but no one seems to know how to do this without user input, for example:

+5
source share
1 answer

Nevermind, this is a built-in function of the Chrome browser, when you focus on the password field, smart!

+1
source

All Articles