#[repr(C)]pub enum VirtualKeyCode {
Show 163 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,
NumpadAdd = 90,
NumpadDivide = 91,
NumpadDecimal = 92,
NumpadComma = 93,
NumpadEnter = 94,
NumpadEquals = 95,
NumpadMultiply = 96,
NumpadSubtract = 97,
AbntC1 = 98,
AbntC2 = 99,
Apostrophe = 100,
Apps = 101,
Asterisk = 102,
At = 103,
Ax = 104,
Backslash = 105,
Calculator = 106,
Capital = 107,
Colon = 108,
Comma = 109,
Convert = 110,
Equals = 111,
Grave = 112,
Kana = 113,
Kanji = 114,
LAlt = 115,
LBracket = 116,
LControl = 117,
LShift = 118,
LWin = 119,
Mail = 120,
MediaSelect = 121,
MediaStop = 122,
Minus = 123,
Mute = 124,
MyComputer = 125,
NavigateForward = 126,
NavigateBackward = 127,
NextTrack = 128,
NoConvert = 129,
OEM102 = 130,
Period = 131,
PlayPause = 132,
Plus = 133,
Power = 134,
PrevTrack = 135,
RAlt = 136,
RBracket = 137,
RControl = 138,
RShift = 139,
RWin = 140,
Semicolon = 141,
Slash = 142,
Sleep = 143,
Stop = 144,
Sysrq = 145,
Tab = 146,
Underline = 147,
Unlabeled = 148,
VolumeDown = 149,
VolumeUp = 150,
Wake = 151,
WebBack = 152,
WebFavorites = 153,
WebForward = 154,
WebHome = 155,
WebRefresh = 156,
WebSearch = 157,
WebStop = 158,
Yen = 159,
Copy = 160,
Paste = 161,
Cut = 162,
}Expand description
Symbolic name for a keyboard key, does NOT take the keyboard locale into account
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
NumpadAdd = 90
NumpadDivide = 91
NumpadDecimal = 92
NumpadComma = 93
NumpadEnter = 94
NumpadEquals = 95
NumpadMultiply = 96
NumpadSubtract = 97
AbntC1 = 98
AbntC2 = 99
Apostrophe = 100
Apps = 101
Asterisk = 102
At = 103
Ax = 104
Backslash = 105
Calculator = 106
Capital = 107
Colon = 108
Comma = 109
Convert = 110
Equals = 111
Grave = 112
Kana = 113
Kanji = 114
LAlt = 115
LBracket = 116
LControl = 117
LShift = 118
LWin = 119
Mail = 120
MediaSelect = 121
MediaStop = 122
Minus = 123
Mute = 124
MyComputer = 125
NextTrack = 128
NoConvert = 129
OEM102 = 130
Period = 131
PlayPause = 132
Plus = 133
Power = 134
PrevTrack = 135
RAlt = 136
RBracket = 137
RControl = 138
RShift = 139
RWin = 140
Semicolon = 141
Slash = 142
Sleep = 143
Stop = 144
Sysrq = 145
Tab = 146
Underline = 147
Unlabeled = 148
VolumeDown = 149
VolumeUp = 150
Wake = 151
WebBack = 152
WebFavorites = 153
WebForward = 154
WebHome = 155
WebRefresh = 156
WebSearch = 157
WebStop = 158
Yen = 159
Copy = 160
Paste = 161
Cut = 162
Implementations§
Source§impl VirtualKeyCode
impl VirtualKeyCode
pub fn get_lowercase(&self) -> Option<char>
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 FromIterator<VirtualKeyCode> for VirtualKeyCodeVec
impl FromIterator<VirtualKeyCode> for VirtualKeyCodeVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = VirtualKeyCode>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = VirtualKeyCode>,
Creates a value from an iterator. Read more
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more