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