alacritty::config::bindings

Type Alias KeyBinding

Source
pub type KeyBinding = Binding<BindingKey>;
Expand description

Bindings that are triggered by a keyboard key.

Aliased Type§

struct KeyBinding {
    pub mods: ModifiersState,
    pub action: Action,
    pub mode: BindingMode,
    pub notmode: BindingMode,
    pub trigger: BindingKey,
}

Fields§

§mods: ModifiersState

Modifier keys required to activate binding.

§action: Action

String to send to PTY if mods and mode match.

§mode: BindingMode

Binding mode required to activate binding.

§notmode: BindingMode

Excluded binding modes where the binding won’t be activated.

§trigger: BindingKey

This property is used as part of the trigger detection code.

For example, this might be a key like “G”, or a mouse button.