Skip to content

Instantly share code, notes, and snippets.

@garrilla
Last active August 29, 2015 14:06
Show Gist options
  • Save garrilla/3e4365d5ed6872505727 to your computer and use it in GitHub Desktop.
Save garrilla/3e4365d5ed6872505727 to your computer and use it in GitHub Desktop.
Template.myTemplate.events({
'keypress #myclass': function (evt){
if(evt.which==13){
//do something because a return was pressed
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment