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