Skip to main content

Module hotkeys

Module hotkeys 

Source
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 receives WM_HOTKEY and dispatches to the handler.
  • macOS: a CGEventTap on kCGHIDEventTap that 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.
HotkeyManager
Platform-independent manager for global hotkeys.
Modifiers
Active modifier keys for a hotkey / input event.

Enums§

Key
A platform-independent key.

Traits§

HotkeyHandler
Callback invoked when a registered hotkey fires.