github/hotkey
Trigger an action on an element with a keyboard shortcut. observed · 2026-08-28
Health v2 · maintenance only
84/100
- Activity 85
- Release rhythm 75
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 2785
- days_rel: 170
- days_push: 91
- n_releases_24m: 3
Adoption not part of the score
3297 stars · 100 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A small JavaScript library from GitHub that triggers actions on elements via keyboard shortcuts declared in data-hotkey attributes. It supports single keys, key sequences, and modifier combos, and is used across GitHub's own UI.
Use cases
- add keyboard shortcuts to focus a search input
- trigger a button click with a key combo like Meta+k
- bind 'g i' style key sequences for navigation
- scope shortcuts to a specific form field
- declare shortcuts in server-rendered HTML templates
When to choose
- you want declarative, HTML-attribute-based keyboard shortcuts
- you need key sequences and cross-platform modifier handling
- you want a tiny dependency maintained by GitHub
When to avoid
- you need complex shortcut management like chord recording or cheat-sheet UIs
- you're building a non-DOM environment such as a terminal or native app
Facets
library · maturity stable
ui-components developer-tools web-development frontend developer-tools browser keyboard-shortcuts hotkeys data-attributes accessibility javascript
2 sources
- readme: https://github.com/github/hotkey · fetched 2026-08-28 · 154fe402c0d0
- homepage: https://github.github.com/hotkey/ · fetched 2026-08-29 · dce525415a5f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| github/hotkey | main | 84 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem