Skip to main content

Module key

Module key 

Source
Expand description

Keyboard input handling.

This module provides types for representing keyboard events, including special keys, control combinations, and regular character input.

Structs§

KeyMsg
Keyboard key event message.

Enums§

KeyType
Key type enumeration.

Functions§

from_crossterm_key
Convert a crossterm KeyCode to our KeyType.
is_sequence_prefix
Check if the input bytes form a prefix of any known ANSI sequence.
parse_sequence
Parse a raw ANSI escape sequence into a KeyMsg.
parse_sequence_prefix
Parse a raw ANSI escape sequence from the start of the input.