Skip to content

Instantly share code, notes, and snippets.

@lardcanoe
Created March 16, 2013 01:01
Show Gist options
  • Save lardcanoe/5174394 to your computer and use it in GitHub Desktop.
Save lardcanoe/5174394 to your computer and use it in GitHub Desktop.
An updated example for using meteor-keybindings by @matteodem Note the use of Meteor.startup so that Meteor.Keybindings has had a chance to be defined.
Meteor.startup(function() {
Meteor.Keybindings.addOne('a', function() {
console.log('You pressed a');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment