Question

Will there be any plan to implement caps lock detection in html5 or some other spec. This seems like a pretty simple functionality to be missing.

Was it helpful?

Solution

Not that I know of. If you want to do it though this is a reasonable approach.

http://www.codeproject.com/Articles/17180/Detect-Caps-Lock-with-Javascript

Basically the idea is to just test if the letter is capital or not and to compare the result with whether or not the shift key was pressed when typing. There is no way that I am aware of to detect CAPS lock right off the bat in a web application.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top