Skip to main content

Module layered

Module layered 

Expand description

Layered keys. (Layering functionality).

Structs§

ConditionalLayer
Conditional layer rule: activate Self::then_layer while every layer in Self::if_layers is active.
Config
Configuration for layered keys / sticky layers / conditional layers.
Context
crate::key::Context for LayeredKey that tracks active layers.
LayerBitset
Fixed-capacity bitset of layers for modifier / conditional-layer state.
LayeredKey
A key whose behavior depends on which layer is active.
ModifierBitset
Struct for modifying layers with a bitset.
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.
LayerLockTarget
Target of a layer-lock action.
LayersError
Errors when constructing Layers.
ModifierKey
Modifier layer key affects what layers are active.
Ref
Reference for a keyboard key.

Constants§

BITSET_MASK_ALL
The bitset with all representable modifier layers in the mask.
DEFAULT_CONFIG
Default layered config (no sticky timeout, no conditional layers).
MAX_BITSET_LAYER
The maximum layer bit index representable 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§

LayerIndex
The type used for layer index.