Skip to main content

key_sequence_to_strokes

Function key_sequence_to_strokes 

Source
pub fn key_sequence_to_strokes(
    seq: &KeySequence,
) -> Result<Vec<KeyStroke>, BindingParseError>
Expand description

Converts a KeySequence to a vector of KeyStroke.

§Arguments

  • seq - The key sequence to convert

§Errors

Returns crate::BindingParseError::MissingKeyCode if the sequence ends with a control or meta modifier that no key code follows.