pub type PressedKeyResult = PressedKeyResult<PendingKeyState, KeyState>;
Expand description
Type alias for result from new_pressed_key.
Aliased Type§
pub enum PressedKeyResult {
Pending(KeyPath, PendingKeyState),
NewPressedKey(NewPressedKey),
Resolved(KeyState),
}
Variants§
Pending(KeyPath, PendingKeyState)
Unresolved key state. (e.g. tap-hold or chorded keys when first pressed).
NewPressedKey(NewPressedKey)
Resolved as a new pressed key.
Resolved(KeyState)
Resolved key state.