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;
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    83
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    83

Package Sidebar

Install

npm i keyboardevent-codes

Weekly Downloads

83

Version

1.0.0

License

MIT

Unpacked Size

13.4 kB

Total Files

4

Last publish

Collaborators

  • nvda