key-code
Library for key-code constants in ECMAScript/Javascript
For more information see this.
See key-code.js for a full list of all the constants
Installation
Using NPM
npm install --save key-code
Using Bower
bower install --save key-code
Usage
Using NodeJs
Include the package using CommonJS require()
var KeyCode = ;
or ES2015 import:
// ES2015+;
Using Browser
<!-- Load files. -->
{ if eventkeyCode === KeyCodeENTER ; }
License
The key-code
project is under MIT license.