パッケージの詳細

bmcmahen-modifier

bmcmahen16MIT1.0.0

determine if a modifier key was pressed

modifier, keydown, keypress, input

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

更新履歴

1.0.0

  • add package.json