Module layered

Source
Expand description

Layered keys. (Layering functionality).

Structs§

Context
crate::key::Context for LayeredKey that tracks active layers.
LayeredKey
A key whose behavior depends on which layer is active.
ModifierKeyState
crate::key::KeyState of ModifierKey.
PendingKeyState
Struct for layer system pending key state. (No pending state).
System
The key::System implementation for layer system keys.

Enums§

ActivationStyle
Style of activating a layer.
Activity
State of an individual layer: active or inactive.
Behavior
Whether the pressed Sticky modifier key is “sticky” or “regular”.
LayerEvent
Events from ModifierKey which affect Context.
LayersError
Errors when constructing Layers.
ModifierKey
Modifier layer key affects what layers are active.
Ref
Reference for a keyboard key.

Constants§

MAX_BITSET_LAYER
The maximum number of layers that can be represented in a LayerBitset.

Traits§

LayerState
Tracks state of active layers.
Layers
Trait for layers of LayeredKey.

Functions§

layered_keys
Constructs an array of keys for the given array.

Type Aliases§

LayerBitset
The type used for set of active layers in ModifierKey. (Limited to MAX_BITSET_LAYER layers.)
LayerIndex
The type used for layer index.