JSPM

key-pressed

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2691
  • Score
    100M100P100Q102174F
  • License MIT

A simple browserify module for telling whether or not a given key has been pressed down.

Package Exports

  • key-pressed

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (key-pressed) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

key-pressed experimental

A simple browserify module for telling whether or not a given key has been pressed down.

Usage

NPM

pressed(name)

Given a key's name, check if that key is currently being pressed down and return either true or false accordingly.

For most keyboard characters you can simply pass their uppercase equivalent, and the remaining special characters are listed in vkey.

License

MIT. See LICENSE.md for details.