fn build_sequence(
    key: KeyEvent,
    mods: ModifiersState,
    mode: TermMode
) -> Vec<u8> 
Expand description

Build a key’s keyboard escape sequence based on the given key, mods, and mode.

The key sequences for APP_KEYPAD and alike are handled inside the bindings.