pub enum Key {
Show 111 variants
Back,
Tab,
Clear,
Return,
Escape,
Space,
Prior,
Next,
End,
Home,
Left,
Up,
Right,
Down,
Select,
Print,
Execute,
Snapshot,
Insert,
Delete,
Help,
Key0,
Key1,
Key2,
Key3,
Key4,
Key5,
Key6,
Key7,
Key8,
Key9,
A,
B,
C,
D,
E,
F,
G,
H,
I,
J,
K,
L,
M,
N,
O,
P,
Q,
R,
S,
T,
U,
V,
W,
X,
Y,
Z,
Numpad0,
Numpad1,
Numpad2,
Numpad3,
Numpad4,
Numpad5,
Numpad6,
Numpad7,
Numpad8,
Numpad9,
Multiply,
Add,
Separator,
Subtract,
Decimal,
Divide,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
F13,
F14,
F15,
F16,
F17,
F18,
F19,
F20,
F21,
F22,
F23,
F24,
Equal,
Minus,
ClosingBrace,
OpeningBrace,
Quote,
Semicolon,
Backslash,
Comma,
Slash,
Period,
Backquote,
Enter,
NumpadEnter,
NumpadEqual,
}
Expand description
Keys that may be pressed
Variants§
Back
Tab
Clear
Return
Escape
Space
Prior
Next
End
Home
Left
Up
Right
Down
Select
Execute
Snapshot
Insert
Delete
Help
Key0
The 0 key at the top of a keyboard
Key1
The 1 key at the top of a keyboard
Key2
The 2 key at the top of a keyboard
Key3
The 3 key at the top of a keyboard
Key4
The 4 key at the top of a keyboard
Key5
The 5 key at the top of a keyboard
Key6
The 6 key at the top of a keyboard
Key7
The 7 key at the top of a keyboard
Key8
The 8 key at the top of a keyboard
Key9
The 9 key at the top of a keyboard
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Numpad0
The 0 key on the numerical keypad
Numpad1
The 1 key on the numerical keypad
Numpad2
The 2 key on the numerical keypad
Numpad3
The 3 key on the numerical keypad
Numpad4
The 4 key on the numerical keypad
Numpad5
The 5 key on the numerical keypad
Numpad6
The 6 key on the numerical keypad
Numpad7
The 7 key on the numerical keypad
Numpad8
The 8 key on the numerical keypad
Numpad9
The 9 key on the numerical keypad
Multiply
Add
Separator
Subtract
Decimal
Divide
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F20
F21
F22
F23
F24
Equal
Minus
ClosingBrace
OpeningBrace
Quote
Semicolon
Backslash
Comma
Slash
Period
Backquote
Enter
Enter, also known as return in Mac OS
NumpadEnter
NumpadEqual
Trait Implementations§
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more