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, Hash)]
7pub 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 Alt,
23 Del,
24 Shift,
25 Insert,
26 PageUp,
27 PageDown,
28 Char(char),
29}
30