Skip to content

🔑 Javascript DOM event key codes map.

License

Notifications You must be signed in to change notification settings

afractal/keycodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keycodes

GPR

Javascript DOM event key codes map.

Install

Setup the .yarnrc file:

"@afractal:registry" "https://npm.pkg.github.com"

Setup the .npmrc file:

@afractal:registry=https://npm.pkg.github.com

Add the definition inside package.json:

"dependencies": {
    "@afractal/keycodes": "<version>"
}

Install the package with yarn:

yarn install

Usage

import keycodes from "@afractal/keycodes";

const enterCode = keycodes["enter"];
const enterCode = keycodes.enter;
// both return 13

License

This product is licensed under ther MIT license.


made with ❤️ by me