# react-keydown

Lightweight keydown wrapper for React components

Canonical page: https://www.reposhelf.co.uk/projects/github/glortho/react-keydown.html

- Project ID: glortho/react-keydown
- Source: GitHub
- Original project: https://github.com/glortho/react-keydown
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: React
- Licence: MIT
- Repository availability checked: 2026-11-20T13:36:00.898Z
- Demo page loaded: 2026-11-23T17:47:17.374Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> Use react-keydown as a higher-order component or decorator to pass keydown events to the wrapped component, or call methods directly via designated keys. Good for implementing keyboard navigation or other shortcuts.

> Consult the API &amp; Reference Documentation or continue reading below for quick start.

> NOTE: react-keydown doesn't use decorators itself, but to use the @keydown pattern in your application you will need a transpiler like Babel and a decorator transform plugin like this:

- Declarative syntax: Components say what keys they will respond to.
- Intuitive DX: Decorate a class or method to bind it to specified keys.
- Scoping: Designate the scope of your bindings by decorating/wrapping components. Only those components and their children will receive the designated key events, and then only when they appear to be active.
- Modifier keys: Support for standard modifier key combinations.
- Lightweight: 2kb compressed and gzipped, and only attaches a single keydown listener to document, no matter how many keybindings you specify.

## Author-documented requirements and audience

> Use react-keydown as a higher-order component or decorator to pass keydown events to the wrapped component, or call methods directly via designated keys. Good for implementing keyboard navigation or other shortcuts.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/glortho/react-keydown/blob/master/README.md

Extraction checked: 2026-10-28T00:25:54.395Z

Last recorded source update: 2026-07-16T19:43:23.000Z

Saved release: Not recorded. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=glortho%2Freact-keydown). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
