/keydown

client side module for firing events when keys are pressed down

Primary LanguageJavaScript

keydown

NPM

client side module for firing events when keys are pressed down. uses vkey definitions

demo

view on requirebin

usage

var keydown = require('keydown')

var kd = keydown(['<control>', 'a'])

kd.on('pressed', function() {
  // control + a are both pressed right now
})