How to check if the caps lock is on in JavaScript?

To detect if the caps lock is on, use the getModifierState() method for the KeyboardEvent object: const capslockIsOn = event.getModifierState(modifier); The getModifierState() (…)… Read more

Similar