special-keys-node
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

useSpecialKeys

Installation

npm -i special-keys-node

or

yarn add special-keys-node

Usage

import { useSpecialKeys } from 'special-keys-node';

const handleKeyDown = useSpecialKeys<HTMLInputElement>({
  Enter: event => console.log(event.currentTarget.value),
  Escape: event => console.log(event.currentTarget.value),
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i special-keys-node

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

1.21 kB

Total Files

2

Last publish

Collaborators

  • brategram