JSPM

key-event-plus

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q8472F
  • License MIT

Improved key up and key down listener

Package Exports

  • key-event-plus

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-event-plus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

keyEvent+

License: MIT Twitter: jeeanribeiro

Key listener that returns all keys, including special characters, solves international keyboards compatibility in some scenarios.

How to use

Installing

npm install key-event-plus

Function

keyEventListener(ms, callback)

ms is the millisseconds between each update

callback is the callback function

Using

var keyEventListener = require('key-event-plus');

window.onload = function() {
    keyEventListener(20, key => console.log(key));
}