keyboardevent-codes
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

keyboardevent-codes

exports a KeyCode type for use in web browsers based on W3C standards

Example

import { KeyCode } from 'keyboardevent-codes';

window.addEventListener('keydown', (event: KeyboardEvent) => {
  const keyCode = <KeyCode>event.code;
});

Readme

Keywords

none

Package Sidebar

Install

npm i keyboardevent-codes

Weekly Downloads

59

Version

1.0.0

License

MIT

Unpacked Size

13.4 kB

Total Files

4

Last publish

Collaborators

  • nvda