#[non_exhaustive]pub enum Key {
Show 114 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,
Num0,
Num1,
Num2,
Num3,
Num4,
Num5,
Num6,
Num7,
Num8,
Num9,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
F13,
F14,
F15,
F16,
F17,
F18,
F19,
F20,
Space,
Return,
Tab,
Escape,
Delete,
ForwardDelete,
Insert,
Home,
End,
PageUp,
PageDown,
LeftArrow,
RightArrow,
UpArrow,
DownArrow,
Minus,
Equal,
LeftBracket,
RightBracket,
Backslash,
Semicolon,
Quote,
Comma,
Period,
Slash,
Grave,
Section,
JisYen,
JisUnderscore,
JisEisu,
JisKana,
Keypad0,
Keypad1,
Keypad2,
Keypad3,
Keypad4,
Keypad5,
Keypad6,
Keypad7,
Keypad8,
Keypad9,
KeypadDecimal,
KeypadMultiply,
KeypadPlus,
KeypadClear,
KeypadDivide,
KeypadEnter,
KeypadMinus,
KeypadEquals,
KeypadComma,
CapsLock,
ScrollLock,
NumLock,
MouseLeft,
MouseRight,
MouseMiddle,
MouseX1,
MouseX2,
}Expand description
Keyboard keys and mouse buttons that can be used in hotkey combinations
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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
Num0
Num1
Num2
Num3
Num4
Num5
Num6
Num7
Num8
Num9
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F20
Space
Return
Tab
Escape
Delete
ForwardDelete
Insert
Home
End
PageUp
PageDown
LeftArrow
RightArrow
UpArrow
DownArrow
Minus
Equal
LeftBracket
RightBracket
Backslash
Semicolon
Quote
Comma
Period
Slash
Grave
Section
JisYen
JisUnderscore
JisEisu
JisKana
Keypad0
Keypad1
Keypad2
Keypad3
Keypad4
Keypad5
Keypad6
Keypad7
Keypad8
Keypad9
KeypadDecimal
KeypadMultiply
KeypadPlus
KeypadClear
KeypadDivide
KeypadEnter
KeypadMinus
KeypadEquals
KeypadComma
CapsLock
ScrollLock
NumLock
MouseLeft
MouseRight
MouseMiddle
MouseX1
Extra button 1 (often “back” on mice with side buttons)
MouseX2
Extra button 2 (often “forward” on mice with side buttons)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 UnsafeUnpin 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