Skip to main content

Module hotkey

Module hotkey 

Source
Expand description

Global hotkey support — shared key-name utilities and platform-specific backends.

Key name lists and formatting live here. The actual hotkey listener (GlobalHotkey) is platform-specific:

  • macOS: hotkey_macos.rs (rdev / CGEventTap)
  • Linux: hotkey_linux.rs (evdev / /dev/input)

Structs§

GlobalHotkey
Global hotkey monitor using evdev (Linux kernel input).

Functions§

format_key_name
Formats a key name for display (e.g., “right_option” → “Right Option”).
list_key_names
Returns a sorted list of all supported key names.