Expand description
Global hotkey manager — registers OS-level key combinations that fire even when the application window is not focused.
This goes beyond Tauri v2’s global-shortcut, which only covers a fixed
subset. rdesktop owns the platform integration directly:
- Windows:
RegisterHotKey+ a dedicated message-pump thread that receivesWM_HOTKEYand dispatches to the handler. - macOS: a
CGEventTaponkCGHIDEventTapthat recognises the combo and consumes the event so it never reaches other apps.
Both paths feed the same HotkeyHandler callback, so application code is
platform-agnostic.
Structs§
- Hotkey
- A global hotkey: a set of modifiers plus a primary key.
- Hotkey
Manager - Platform-independent manager for global hotkeys.
- Modifiers
- Active modifier keys for a hotkey / input event.
Enums§
- Key
- A platform-independent key.
Traits§
- Hotkey
Handler - Callback invoked when a registered hotkey fires.