Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 258 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 258 Bytes

key-event

Add/remove keyboard events.

Install

$ npm install key-event

Usage

var keyEvent = require('key-event')
var removeKeyEvent = keyEvent.off

keyEvent(element, 'ctrl alt u', function (event) {
  console.log('hi!')
})