3 ms·
This must be intentional. I can see how it makes sense, but IIRC there is a way to detect whether a user has caps lock on using JS, so that might be a better wa
by untog 15y ago
This must be intentional. I can see how it makes sense, but IIRC there is a way to detect whether a user has caps lock on using JS, so that might be a better way forward.
Either way, it's not a ton of use unless you know the person's password in the first place.
- Me1000 15y agoThere'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.