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

StackOverflow https://stackoverflow.com//questions/10680935

  •  12-12-2019
  •  | 
  •  

문제

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:

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top