Skip to content

Instantly share code, notes, and snippets.

@TheSavior
Last active Aug 29, 2015
Embed
What would you like to do?
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