3 ms·
There's no way to detect if the user's caps lock is turned on in JS
by Me1000 15y ago
There's no way to detect if the user's caps lock is turned on in JS
- untog 15y agohttp://stackoverflow.com/questions/348792/how-do-you-tell-if-caps-lock-is-on-using-javascript http://stackoverflow.com/questions/348792/how-do-you-tell-if... Are you sure? The JS event receiving an upper case letter without also receiving the shift keycode would be a pretty good indicator, I would have thought.
- Terretta 15y agoAm mobile so can't check if it still does, but Apple's me.com login page used to inform you if caps lock was on, using the method in the article linked to from sibling comment's StackOverflow link: http://dougalmatthews.com/articles/2008/jul/2/javascript-detecting-caps-lock/ http://dougalmatthews.com/articles/2008/jul/2/javascript-det...
- Me1000 15y agoah, clever… I was thinking detection before the user types anything.