Crate livesplit_hotkey

Source
Expand description

livesplit-hotkey is a crate that allows listening to hotkeys even when the application is not in focus. The crate currently supports Windows, macOS, Linux and the web via wasm-bindgen. On unsupported platforms the crate still compiles but uses a stubbed out implementation instead that never receives any hotkeys.

Structs§

Hook
A hook allows you to listen to hotkeys.
Hotkey
A hotkey is a combination of a key code and a set of modifiers.
Modifiers
The modifier keys that are currently pressed.

Enums§

ConsumePreference
The preference of whether the hotkeys should be consumed or not. Consuming a hotkey means that the hotkey won’t be passed on to the application that is currently in focus.
Error
The error type for this crate.
KeyCode
A key code represents a physical key on a keyboard and is independent of the keyboard layout. The values are based on the UI Events KeyboardEvent code Values specification. There are some additional values for Gamepad support and some browser specific values.
KeyCodeClass
Every KeyCode is grouped into one of these classes.

Type Aliases§

Result
The result type for this crate.