Skip to content

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

Notifications You must be signed in to change notification settings

ambethia/jquery-shortcuts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Packages