1.4.2 • Published 6 years ago
spa-keys v1.4.2
Keyboard keys codes
Generated by keyboards key codes used in SPA applications.
Installation
npm install spa-keys
Usage
Add to the scope:
var keys = require('spa-keys');
In some event handler:
if ( event.code === keys.enter ) {
/* ... */
}
Contribution
If you have any problems or suggestions please open an issue according to the contribution rules.
License
spa-keys
is released under the MIT License.