Expand description

UNSTABLE – The GlobalShortcut struct and associated types.

Platform-specific

  • Linux: Only works on x11. See #331 for more information.
let mut hotkey_manager = ShortcutManager::new(&event_loop);
let accelerator = Accelerator::new(SysMods::Shift, KeyCode::ArrowUp);
let global_shortcut = hotkey_manager.register(accelerator)?;

Structs

Describes a global keyboard shortcut.

Object that allows you to manage a GlobalShortcut.

Enums

An error whose cause the ShortcutManager to fail.