Skip to content

ruidfigueiredo/easykeyjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •