Skip to content

ruidfigueiredo/easykeyjs

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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

  •  
  •  
  •  
  •