with-modifier-key

Detect some modifier keys are pressed

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
with-modifier-key
1.0.08 years ago8 years agoMinified + gzip package size for with-modifier-key in KB

Readme

with-modifier-key
Build Status
Detect some modifier keys are pressed.
var withModifierKey = require('with-modifier-key')

element.addEventListener('click', function (event) {
  if (withModifierKey(event)) {
    // yay
  }
})

Install

npm install with-modifier-key

License

MIT