Description
global_hotkey is a library for registering global hotkeys in desktop applications. A global hotkey is a key combination that is caught by the system, so you can listen for it while your app is in the background. You register a hotkey with a manager, then listen for press events through a receiver that delivers an event each time a registered combination is pressed. The library supports Windows, macOS and Linux, with Linux support limited to X11. Each platform has its own requirements. On Windows, a win32 event loop must run on the thread where the hotkey manager is created, which does not have to be the main thread. On macOS, an event loop must run on the main thread, and the manager has to be created there too. The project is part of the Tauri organisation on GitHub and is licensed Apache-2.0/MIT.…
Highlights
- Global hotkeys for desktop applications
- Hotkey press events through a receiver
- Windows, macOS and Linux (X11) support
- Platform notes for event loop setup
- Apache-2.0 or MIT license
Ratings & Reviews
No ratings yet
Be the first to rate Global Hotkey.
People also visit
Global Hotkey FAQ
What does global_hotkey do?
It registers system-wide keyboard shortcuts for a desktop app and reports when they are pressed.
Which platforms are supported?
Windows, macOS and Linux. Linux support is for X11 only.
Does it need an event loop?
Yes. On Windows a win32 event loop must run on the thread that creates the manager. On macOS an event loop must run on the main thread.
What license is it under?
It is licensed Apache-2.0/MIT, so you can pick whichever suits your project.
What are the best Global Hotkey alternatives?
Popular alternatives to Global Hotkey include KeyboardShortcuts, Howcode and CodexDesktop-Rebuild. See all Global Hotkey alternatives

