bmcmahen-modifier

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i bmcmahen-modifier

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bmcmahen