detect caps lock key turned on or not in JavaScript

JavaScript

🤖 Code Explanation

The code detects whether or not caps lock is on. If the key code is between 65 and 90, and shift key is not pressed, then caps lock is on. If the key code is between 97 and 122, and shift key is pressed, then caps lock is on.

Download SpellBox today