Skip to content

Simple JS code snippet for detecting if caps lock is on

Notifications You must be signed in to change notification settings

Gabb1995/js-caps-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

js-caps-lock

I searched for a long time for a way to create a fully working caps lock detector with js for password fields. A lot of the code I found worked only in some parts, for example if you press caps lock it doesn't update automatically or if you press shift it says caps lock is off when its not.

This way we always look at the state of the caps lock not at the state of the characters you type.

For a demo you can look at this fiddle: http://www.jsfiddle.net/e50nmrtz/4/

About

Simple JS code snippet for detecting if caps lock is on

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages