How to use the keycode.aliases 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('does not use alias name when mapping back from a number', function() {
  for (var key in keycode.aliases) {
    assert.notStrictEqual(keycode(keycode(key)), key);
  }
})

keycode

Convert between keyboard keycodes and keynames and vice versa.

MIT
Latest version published 3 years ago

Package Health Score

68 / 100
Full package analysis