Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A very lightweight approach to keyboard shortcuts (hotkeys) with jQuery

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 demo.html
Octocat-spinner-32 jquery.shortcuts.js
Octocat-spinner-32 jquery.shortcuts.min.js
README.md

jQuery Shortcuts

A very lightweight approach to keyboard shortcuts (hotkeys) with jQuery.

Example Usage

$(document).shortcuts({
  "Q": {
    keys: [81],
    desc: "Log Q to the console",
    func: function() { console.log("You pressed Q") }
  },
  "ALT I": {
    keys: [18, 73],
    desc: "Log this key combination to the console",
    func: function() { console.log("You pressed ALT and I") }
  }
});

License

Copyright © 2009 Jason L Perry

Dual licensed under the MIT and GPL licenses. Uses the same license as jQuery.

Something went wrong with that request. Please try again.