1.0.0 • Published 9 years ago
bmcmahen-modifier v1.0.0
modifier
check if the keyup event is a modifier.
Installation
Install with component(1) or NPM:
$ component install bmcmahen/modifier
$ npm install bmcmahen-modifier
Usage
var isModifier = require('modifier');
el.onkeyup = function(e){
if (isModifier(e)) {
console.log(' i am a modifier! ');
}
};
License
MIT
1.0.0
9 years ago