soffes/HotKey
Simple global shortcuts in macOS observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- 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: n/a
- age_days: 3330
- days_rel: 612
- days_push: 612
- n_releases_24m: 1
Adoption not part of the score
1080 stars · 88 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
HotKey is a small Swift library that wraps the Carbon APIs to make registering global keyboard shortcuts in macOS apps easy. It provides a simple HotKey object with key down/up handlers managed automatically by object lifecycle.
Use cases
- register a global hotkey in a mac app
- trigger an action with a system-wide keyboard shortcut
- add a global shortcut like cmd+option+R to my macOS app
- wrap Carbon hot key APIs in Swift
- handle key down and key up events for global shortcuts
When to choose
- you're building a macOS app in Swift that needs system-wide keyboard shortcuts
- you want a simple, lightweight wrapper instead of dealing with Carbon APIs directly
- you prefer automatic handler registration/unregistration tied to object lifecycle
When to avoid
- you need shortcuts scoped only within your app's windows (use AppKit's native key equivalents)
- you're targeting iOS or other non-macOS platforms
- you need complex hotkey conflict resolution or recording UI
Facets
library · maturity stable
sdk developer-tools operating-systems developer-tools desktop-applications global-hotkeys keyboard-shortcuts carbon-api appkit swift-package-manager macos swift
1 source
- readme: https://github.com/soffes/HotKey · fetched 2026-08-28 · c9fed434a828
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| soffes/HotKey | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem