bmcmahen-modifier
v1.0.0
Published
determine if a modifier key was pressed
Downloads
9
Maintainers
Readme
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