1 /// Key mapping
2 ///
3 /// This is an incomplete mapping of keys that are supported for reading
4 /// from the keyboard.
5 #[non_exhaustive]
6 #[derive(Clone, PartialEq, Eq, Debug)]
7 pub enum Key {
8     Unknown,
9     /// Unrecognized sequence containing Esc and a list of chars
10     UnknownEscSeq(Vec<char>),
11     ArrowLeft,
12     ArrowRight,
13     ArrowUp,
14     ArrowDown,
15     Enter,
16     Escape,
17     Backspace,
18     Home,
19     End,
20     Tab,
21     BackTab,
22     Del,
23     Insert,
24     PageUp,
25     PageDown,
26     Char(char),
27 }
28