Type Alias alacritty::config::bindings::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.
Implementations§
source§impl<T: Eq> Binding<T>
impl<T: Eq> Binding<T>
pub fn is_triggered_by( &self, mode: BindingMode, mods: ModifiersState, input: &T ) -> bool
pub fn triggers_match(&self, binding: &Binding<T>) -> bool
Trait Implementations§
source§impl<'a> Deserialize<'a> for Binding<BindingKey>
impl<'a> Deserialize<'a> for Binding<BindingKey>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more