mennovanslooten / jquery.specialkeys.js

A jQuery plugin to make keyboard event handling for special keys (enter, space, up, down, etc) a breeze.

Home Page:http://mennovanslooten.github.com/jquery.specialkeys.js/test.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jquery.specialkeys.js

What is this?

It's a plugin for jQuery that extends the standard events so you can do this:

$('.some-selector').on('enterkey', function(e) {
    // the user pressed the enter key
});

or even this:

$('.some-selector').on('shift_downkey', function(e) {
    // the user pressed shift+down
});

Demo

A demo can be found here: http://mennovanslooten.github.com/jquery.specialkeys.js/test.html

The following new key names have supported events (both [name]key as well as shift_[name]key):

  • backspace
  • delete
  • left
  • up
  • right
  • down
  • tab
  • enter
  • space
  • escape
  • esc

About

A jQuery plugin to make keyboard event handling for special keys (enter, space, up, down, etc) a breeze.

http://mennovanslooten.github.com/jquery.specialkeys.js/test.html

License:GNU General Public License v2.0


Languages

Language:JavaScript 100.0%