bmcmahen-modifier

determine if a modifier key was pressed

Usage no npm install needed!

<script type="module">
  import bmcmahenModifier from 'https://cdn.skypack.dev/bmcmahen-modifier';
</script>

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