pub struct Fork {
pub trigger: KeyAction,
pub negative_output: KeyAction,
pub positive_output: KeyAction,
pub match_any: StateBits,
pub match_none: StateBits,
pub kept_modifiers: ModifierCombination,
pub bindable: bool,
}Expand description
Fork (key override) configuration.
A fork overrides a key’s output based on the current modifier/LED/mouse state.
When the trigger key is pressed, the fork checks current state against match_any
and match_none to decide between positive_output and negative_output.
Fields§
§trigger: KeyActionThe key action that activates this fork. Should not be KeyAction::Transparent.
negative_output: KeyActionOutput when the state condition is NOT met.
positive_output: KeyActionOutput when the state condition IS met.
match_any: StateBitsIf any of these state bits are active, the positive branch is taken.
match_none: StateBitsIf any of these state bits are active, the fork is suppressed.
kept_modifiers: ModifierCombinationModifiers to keep active when the fork fires.
bindable: boolWhether this fork can be rebound via protocol. This is a firmware-enforced policy — the protocol itself does not reject writes to non-bindable forks; enforcement happens in the firmware’s SetFork handler.