node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

crtrdg-keyboard

keyboard module for crtrdg

crtrdg keyboard

keyboard listener module for crtrdg

npm install --save crtrdg-keyboard

Create the keyboard object.

Examples

var createKeyboard = require('crtrdg-keyboard')
var keyboard = createKeyboard()

keydown event

Parameters

  • keyCode String

Examples

keyboard.on('keydown', function (key) {
  console.log(key)
})

keyup event

Parameters

  • keyCode String

Examples

keyboard.on('keyup', function (key) {
  console.log(key)
})
  • Fork this repository.
  • Create a branch for you changes.
  • Include tests if applicable.
  • Add/edit documentation for any changes.
  • Submit a pull request.

MIT