#[repr(u32)]
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.

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

§

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

Trait Implementations§

source§

impl Clone for VirtualKeyCode

source§

fn clone(&self) -> VirtualKeyCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VirtualKeyCode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for VirtualKeyCode

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Hash for VirtualKeyCode

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for VirtualKeyCode

source§

fn cmp(&self, other: &VirtualKeyCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for VirtualKeyCode

source§

fn eq(&self, other: &VirtualKeyCode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for VirtualKeyCode

source§

fn partial_cmp(&self, other: &VirtualKeyCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for VirtualKeyCode

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for VirtualKeyCode

source§

impl Eq for VirtualKeyCode

source§

impl StructuralEq for VirtualKeyCode

source§

impl StructuralPartialEq for VirtualKeyCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,