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+
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));
}