Skip to content
This repository was archived by the owner on Dec 17, 2019. It is now read-only.

About

Do something when a series of keystrokes is entered in a webpage

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

#jQuery Key Sequence Detector Plugin ##What? This plugin watches for a sequence of characters to be typed, and executes some function when detected.

Checkout demo.html for an example.

##How? Suppose you have this script:

$(window).keySequenceDetector('boom', function(){ alert('goes the dynamite'); });

The plugin will pop up an alert box whenever the user types in the four consecutive letters b-o-o-m.

##Note! This plugin allows you to keep on chaining, so, for example:

$('#myelement').keySequenceDetector().css({border:'1px solid blue'});

Would run keySequenceDetector on #myelement then add a blue border to it after.

##Options:

The following options can be provided like so (default values specified):

$('.yourSelector').keySequenceDetector({

     wildcard: '.'

});      

##Whats next?

The world!

##Found a bug?

Submit a bug report above or here

Or ping me on Twitter or on my blog

About

Do something when a series of keystrokes is entered in a webpage

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages