Skip to content

Instantly share code, notes, and snippets.

@jhammann
Created June 27, 2013 19:19
Show Gist options
  • Save jhammann/5879513 to your computer and use it in GitHub Desktop.
Save jhammann/5879513 to your computer and use it in GitHub Desktop.
I created a snippet for showing an element (a link to an edit form, hence the element classname) on keydown.
$("body").keydown(function(e){
if (e.keyCode == 69) {
$('.editLink').toggle();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment