A jQuery plugin that makes handling the keyboard really easy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
easyKey.js
easyKeyNoJq.js

README.md

easykeyjs

Stop having to write code like this

$(document).keydown(function(e){
	if (e.which == 13) //enter
  reloadResults();
else if (e.which == 37) //left arrow
  previousPage();
else if (e.which == 39) //right page
  nextPage();
}); 

And write this instead:

$(document)
  .onEnterKeyDown(reloadResults)
  .onLeftArrowKeyDown(previousPage)
  .onRightArrowKeyDown(nextPage);

Read more about easykeyjs.

Go download the latest version http://easykeyjs.com.