Skip to content

Instantly share code, notes, and snippets.

@rcy
Created August 27, 2013 20:02
Show Gist options
  • Save rcy/6358408 to your computer and use it in GitHub Desktop.
Save rcy/6358408 to your computer and use it in GitHub Desktop.
keydown test
<head>
<title>keydown</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<input type="text">
</template>
if (Meteor.isClient) {
Template.hello.events({
'keydown' : function (e) {
console.log('you hit key: ' + e.which);
},
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment