#[repr(u32)]pub enum VirtualKeyCode {
Show 161 variants
Key1 = 0,
Key2 = 1,
Key3 = 2,
Key4 = 3,
Key5 = 4,
Key6 = 5,
Key7 = 6,
Key8 = 7,
Key9 = 8,
Key0 = 9,
A = 10,
B = 11,
C = 12,
D = 13,
E = 14,
F = 15,
G = 16,
H = 17,
I = 18,
J = 19,
K = 20,
L = 21,
M = 22,
N = 23,
O = 24,
P = 25,
Q = 26,
R = 27,
S = 28,
T = 29,
U = 30,
V = 31,
W = 32,
X = 33,
Y = 34,
Z = 35,
Escape = 36,
F1 = 37,
F2 = 38,
F3 = 39,
F4 = 40,
F5 = 41,
F6 = 42,
F7 = 43,
F8 = 44,
F9 = 45,
F10 = 46,
F11 = 47,
F12 = 48,
F13 = 49,
F14 = 50,
F15 = 51,
F16 = 52,
F17 = 53,
F18 = 54,
F19 = 55,
F20 = 56,
F21 = 57,
F22 = 58,
F23 = 59,
F24 = 60,
Snapshot = 61,
Scroll = 62,
Pause = 63,
Insert = 64,
Home = 65,
Delete = 66,
End = 67,
PageDown = 68,
PageUp = 69,
Left = 70,
Up = 71,
Right = 72,
Down = 73,
Back = 74,
Return = 75,
Space = 76,
Compose = 77,
Caret = 78,
Numlock = 79,
Numpad0 = 80,
Numpad1 = 81,
Numpad2 = 82,
Numpad3 = 83,
Numpad4 = 84,
Numpad5 = 85,
Numpad6 = 86,
Numpad7 = 87,
Numpad8 = 88,
Numpad9 = 89,
NumpadComma = 90,
NumpadEnter = 91,
NumpadEquals = 92,
NumpadSubtract = 93,
AbntC1 = 94,
AbntC2 = 95,
Apostrophe = 96,
Apps = 97,
At = 98,
Ax = 99,
Backslash = 100,
Calculator = 101,
Capital = 102,
Colon = 103,
Comma = 104,
Convert = 105,
Decimal = 106,
Divide = 107,
Equals = 108,
Grave = 109,
Kana = 110,
Kanji = 111,
LAlt = 112,
LBracket = 113,
LControl = 114,
LShift = 115,
LWin = 116,
Mail = 117,
MediaSelect = 118,
MediaStop = 119,
Minus = 120,
Multiply = 121,
Mute = 122,
MyComputer = 123,
NavigateForward = 124,
NavigateBackward = 125,
NextTrack = 126,
NoConvert = 127,
OEM102 = 128,
Period = 129,
PlayPause = 130,
Plus = 131,
Power = 132,
PrevTrack = 133,
RAlt = 134,
RBracket = 135,
RControl = 136,
RShift = 137,
RWin = 138,
Semicolon = 139,
Slash = 140,
Sleep = 141,
Stop = 142,
Sysrq = 143,
Tab = 144,
Underline = 145,
Unlabeled = 146,
VolumeDown = 147,
VolumeUp = 148,
Wake = 149,
WebBack = 150,
WebFavorites = 151,
WebForward = 152,
WebHome = 153,
WebRefresh = 154,
WebSearch = 155,
WebStop = 156,
Yen = 157,
Copy = 158,
Paste = 159,
Cut = 160,
}
Expand description
Symbolic name for a keyboard key.
Variants§
Key1 = 0
The ‘1’ key over the letters.
Key2 = 1
The ‘2’ key over the letters.
Key3 = 2
The ‘3’ key over the letters.
Key4 = 3
The ‘4’ key over the letters.
Key5 = 4
The ‘5’ key over the letters.
Key6 = 5
The ‘6’ key over the letters.
Key7 = 6
The ‘7’ key over the letters.
Key8 = 7
The ‘8’ key over the letters.
Key9 = 8
The ‘9’ key over the letters.
Key0 = 9
The ‘0’ key over the ‘O’ and ‘P’ keys.
A = 10
B = 11
C = 12
D = 13
E = 14
F = 15
G = 16
H = 17
I = 18
J = 19
K = 20
L = 21
M = 22
N = 23
O = 24
P = 25
Q = 26
R = 27
S = 28
T = 29
U = 30
V = 31
W = 32
X = 33
Y = 34
Z = 35
Escape = 36
The Escape key, next to F1.
F1 = 37
F2 = 38
F3 = 39
F4 = 40
F5 = 41
F6 = 42
F7 = 43
F8 = 44
F9 = 45
F10 = 46
F11 = 47
F12 = 48
F13 = 49
F14 = 50
F15 = 51
F16 = 52
F17 = 53
F18 = 54
F19 = 55
F20 = 56
F21 = 57
F22 = 58
F23 = 59
F24 = 60
Snapshot = 61
Print Screen/SysRq.
Scroll = 62
Scroll Lock.
Pause = 63
Pause/Break key, next to Scroll lock.
Insert = 64
Insert
, next to Backspace.
Home = 65
Delete = 66
End = 67
PageDown = 68
PageUp = 69
Left = 70
Up = 71
Right = 72
Down = 73
Back = 74
The Backspace key, right over Enter.
Return = 75
The Enter key.
Space = 76
The space bar.
Compose = 77
The “Compose” key on Linux.
Caret = 78
Numlock = 79
Numpad0 = 80
Numpad1 = 81
Numpad2 = 82
Numpad3 = 83
Numpad4 = 84
Numpad5 = 85
Numpad6 = 86
Numpad7 = 87
Numpad8 = 88
Numpad9 = 89
NumpadComma = 90
NumpadEnter = 91
NumpadEquals = 92
NumpadSubtract = 93
AbntC1 = 94
AbntC2 = 95
Apostrophe = 96
Apps = 97
At = 98
Ax = 99
Backslash = 100
Calculator = 101
Capital = 102
Colon = 103
Comma = 104
Convert = 105
Decimal = 106
Divide = 107
Equals = 108
Grave = 109
Kana = 110
Kanji = 111
LAlt = 112
LBracket = 113
LControl = 114
LShift = 115
LWin = 116
Mail = 117
MediaSelect = 118
MediaStop = 119
Minus = 120
Multiply = 121
Mute = 122
MyComputer = 123
NextTrack = 126
NoConvert = 127
OEM102 = 128
Period = 129
PlayPause = 130
Plus = 131
Power = 132
PrevTrack = 133
RAlt = 134
RBracket = 135
RControl = 136
RShift = 137
RWin = 138
Semicolon = 139
Slash = 140
Sleep = 141
Stop = 142
Sysrq = 143
Tab = 144
Underline = 145
Unlabeled = 146
VolumeDown = 147
VolumeUp = 148
Wake = 149
WebBack = 150
WebFavorites = 151
WebForward = 152
WebHome = 153
WebRefresh = 154
WebSearch = 155
WebStop = 156
Yen = 157
Copy = 158
Paste = 159
Cut = 160
Trait Implementations§
Source§impl Clone for VirtualKeyCode
impl Clone for VirtualKeyCode
Source§fn clone(&self) -> VirtualKeyCode
fn clone(&self) -> VirtualKeyCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VirtualKeyCode
impl Debug for VirtualKeyCode
Source§impl Hash for VirtualKeyCode
impl Hash for VirtualKeyCode
Source§impl Ord for VirtualKeyCode
impl Ord for VirtualKeyCode
Source§fn cmp(&self, other: &VirtualKeyCode) -> Ordering
fn cmp(&self, other: &VirtualKeyCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VirtualKeyCode
impl PartialEq for VirtualKeyCode
Source§impl PartialOrd for VirtualKeyCode
impl PartialOrd for VirtualKeyCode
Source§impl TryFrom<u16> for VirtualKeyCode
impl TryFrom<u16> for VirtualKeyCode
impl Copy for VirtualKeyCode
impl Eq for VirtualKeyCode
impl StructuralPartialEq for VirtualKeyCode
Auto Trait Implementations§
impl Freeze for VirtualKeyCode
impl RefUnwindSafe for VirtualKeyCode
impl Send for VirtualKeyCode
impl Sync for VirtualKeyCode
impl Unpin for VirtualKeyCode
impl UnwindSafe for VirtualKeyCode
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