How to use the keycode.code function in keycode

To help you get started, we’ve selected a few keycode examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github timoxley / keycode / test / keycode.js View on Github external
it('is commutative', function() {
  for (var key in keycode.code) {
    assert.strictEqual(keycode(key), keycode(keycode(keycode(key))))
  }
})

keycode

Convert between keyboard keycodes and keynames and vice versa.

MIT
Latest version published 2 years ago

Package Health Score

68 / 100
Full package analysis