Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 873 Bytes

File metadata and controls

30 lines (19 loc) · 873 Bytes

keycode-ts

TypeScript package for Chromium-style keycode mappings generated from keycode_converter_data.inc.

Workflow

Generate the raw TypeScript objects:

bun run generate

Build the npm package into dist/:

bun run build

Import the package from dist/ after building. The generated runtime data lives in src/generated.ts; generator code lives under scripts/ and is not published.

Source Data

Update the source file with:

curl -sL 'https://chromium.googlesource.com/chromium/src/+/master/ui/events/keycodes/dom/keycode_converter_data.inc?format=TEXT' | base64 --decode > keycode_converter_data.inc