Kit Sunde
Kit Sunde

Reputation: 37075

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

Gmail shows an icon in Chrome when the user has capslock on and focuses on the password field, how are they able to do that?

There are many related question to this, but no one seem to know how to do it without user input, like:

Upvotes: 7

Views: 542

Answers (1)

Kit Sunde
Kit Sunde

Reputation: 37075

Nevermind, this is a native function of the Chrome browser when focusing on password field, clever!

Upvotes: 1

Related Questions