ruidfigueiredo / easykeyjs

A jQuery plugin that makes handling the keyboard really easy

Home Page:http://www.easykeyjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A jQuery plugin that makes handling the keyboard really easy

http://www.easykeyjs.com

License:MIT License


Languages

Language:JavaScript 100.0%