keycodes
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.comAdd the definition inside package.json:
"dependencies": {
"@afractal/keycodes": "<version>"
}Install the package with yarn:
yarn installUsage
import keycodes from "@afractal/keycodes";
const enterCode = keycodes["enter"];
const enterCode = keycodes.enter;
// both return 13License
This product is licensed under ther MIT license.
made with ❤️ by me
On this page
Languages
TypeScript100.0%
Contributors
MIT License
Created December 18, 2019
Updated September 2, 2021