cli_prompts/input/mod.rs
1//! Module for handling input
2
3/// Represents different keyboard keys
4pub enum Key {
5 /// Backspace key
6 Backspace,
7
8 /// Enter (Return) key
9 Enter,
10
11 /// Left arrow key
12 Left,
13
14 /// Right arrow key
15 Right,
16
17 /// Up arrow key
18 Up,
19
20 /// Down arrow key
21 Down,
22
23 /// Home key
24 Home,
25
26 /// End key
27 End,
28
29 /// Page Up key
30 PageUp,
31
32 /// Page Down key
33 PageDown,
34
35 /// Tab key
36 Tab,
37
38 /// Shift+Tab key
39 BackTab,
40
41 /// Delete key
42 Delete,
43
44 /// Insert key
45 Insert,
46
47 /// Function keys from F1 to F12
48 F(u8),
49
50 /// All the character keys
51 Char(char),
52
53 /// Esc key
54 Esc,
55}