with-modifier-key

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i with-modifier-key

Weekly Downloads

799

Version

1.0.0

License

MIT

Last publish

Collaborators

  • uiureo