Expand description
Layered keys. (Layering functionality).
Structs§
- Context
- crate::key::Context for LayeredKey that tracks active layers.
- Layered
Key - A key whose behavior depends on which layer is active.
- Modifier
KeyState - crate::key::KeyState of ModifierKey.
- Pending
KeyState - Struct for layer system pending key state. (No pending state).
- System
- The key::System implementation for layer system keys.
Enums§
- Activation
Style - 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”.
- Layer
Event - Events from ModifierKey which affect Context.
- Layers
Error - Errors when constructing Layers.
- Modifier
Key - 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§
- Layer
State - 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§
- Layer
Bitset - The type used for set of active layers in ModifierKey. (Limited to MAX_BITSET_LAYER layers.)
- Layer
Index - The type used for layer index.