Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A jQuery plugin to check whether caps lock is turned on.
JavaScript
branch: master

Version update

latest commit 9ee8090447
Pavel Azanov authored

README.md

jquery.capsChecker

jquery.capsChecker is a jQuery plugin to check whether caps lock is turned on. It is the only plugin of its kind, which can recognize caps lock on numbers. That's important for users with standard German keyboard layout.

Usage

Quickstart:

$('#txtTest').capsChecker({
    capson: function(e, isOn) {
        // ...
    },
    capsoff: function(e, isOn) {
        // ...
    }
});

Both options are optional and false by default.

Manual binding of handlers

$('#txtTest').capsChecker();

$('#txtTest').on('capson', function(e, isOn) {
    //...
});

$('#txtTest').on('capsoff', function(e, isOn) {
    //...
});

Removing a capsChecker from the input field

$('#txtTest').capsChecker('destroy');
Something went wrong with that request. Please try again.