Skip to content

Instantly share code, notes, and snippets.

@nobodyplace
Last active November 20, 2015 15:54
Show Gist options
  • Save nobodyplace/9570888 to your computer and use it in GitHub Desktop.
Save nobodyplace/9570888 to your computer and use it in GitHub Desktop.
hotkeys-sample-keypress-2
$('#sample').bind('keypress', 'j', function (evt){
alert('pressed J key');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment