Skip to content

Instantly share code, notes, and snippets.

@TheSavior
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheSavior/fccbb98f277f21f8ed34 to your computer and use it in GitHub Desktop.
Save TheSavior/fccbb98f277f21f8ed34 to your computer and use it in GitHub Desktop.
CommonJS Objects Events
var keys = require('./keys');
document.addEventListener('keyup', function(e) {
var key = keys[e.keyCode];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment