pub enum Key {
Show 108 variants
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,
Num1,
Num2,
Num3,
Num4,
Num5,
Num6,
Num7,
Num8,
Num9,
Num0,
NumPad1,
NumPad2,
NumPad3,
NumPad4,
NumPad5,
NumPad6,
NumPad7,
NumPad8,
NumPad9,
NumPad0,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
Shift,
Ctrl,
Alt,
Backtick,
Comma,
Dot,
Slash,
Semicolon,
Apostrophe,
LeftBracket,
RightBracket,
Backslash,
Minus,
Equals,
NumAdd,
NumSub,
NumMul,
NumDiv,
NumDot,
Tab,
Space,
Enter,
Backspace,
Esc,
CapsLock,
LeftCtrl,
LeftShift,
LeftAlt,
RightCtrl,
RightShift,
RightAlt,
ScrollLock,
NumLock,
Delete,
Insert,
Home,
End,
PageUp,
PageDown,
Clear,
LeftButton,
RightButton,
MiddleButton,
X1Button,
X2Button,
Left,
Right,
Up,
Down,
Unknown(i32),
}
Expand description
按键标识
此枚举标识(美式)键盘上所有的按键
Variants§
A
A
B
B
C
C
D
D
E
E
F
F
G
G
H
H
I
I
J
J
K
K
L
L
M
M
N
N
O
O
P
P
Q
Q
R
R
S
S
T
T
U
U
V
V
W
W
X
X
Y
Y
Z
Z
Num1
1
Num2
2
Num3
3
Num4
4
Num5
5
Num6
6
Num7
7
Num8
8
Num9
9
Num0
0
NumPad1
NumPad 1
NumPad2
NumPad 2
NumPad3
NumPad 3
NumPad4
NumPad 4
NumPad5
NumPad 5
NumPad6
NumPad 6
NumPad7
NumPad 7
NumPad8
NumPad 8
NumPad9
NumPad 9
NumPad0
NumPad 0
F1
F1
F2
F2
F3
F3
F4
F4
F5
F5
F6
F6
F7
F7
F8
F8
F9
F9
F10
F10
F11
F11
F12
F12
Shift
Shift
Ctrl
Ctrl
Alt
Alt
Backtick
`
Comma
,
Dot
.
Slash
/
Semicolon
;
Apostrophe
’
LeftBracket
[
RightBracket
]
Backslash
\
Minus
Equals
=
NumAdd
NumPad +
NumSub
NumPad -
NumMul
NumPad *
NumDiv
NumPad /
NumDot
NumPad .
Tab
Tab
Space
Space
Enter
Enter
Backspace
Backspace
Esc
Esc
CapsLock
CapsLock
LeftCtrl
Left Ctrl
LeftShift
Left Shift
LeftAlt
Left Alt
RightCtrl
Right Ctrl
RightShift
Right Shift
RightAlt
Right Alt
ScrollLock
ScrollLock
NumLock
NumLock
Delete
Delete
Insert
Insert
Home
Home
End
End
PageUp
PageUp
PageDown
PageDown
Clear
Clear
LeftButton
Left mouse button
RightButton
Right mouse button
MiddleButton
Middle mouse button
X1Button
Mouse extension button 1
X2Button
Mouse extension button 2
Left
Left arrow
Right
Right arrow
Up
Up arrow
Down
Down arrow
Unknown(i32)
Unknown key
Trait Implementations§
Source§impl Ord for Key
impl Ord for Key
Source§impl PartialOrd for Key
impl PartialOrd for Key
impl Copy for Key
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