pub enum KeyCode {
Show 110 variants
Escape,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
Backtick,
Tilde,
Num1,
ExclamationPoint,
Num2,
At,
Num3,
Hashtag,
Num4,
Dollar,
Num5,
Percent,
Num6,
Caret,
Num7,
Ampersand,
Num8,
Asterisks,
Num9,
OpenParenthesis,
Num0,
CloseParenthesis,
Minus,
Underscore,
Equals,
Plus,
Backspace,
Tab,
Q,
W,
E,
R,
T,
Y,
U,
I,
O,
P,
OpenBracket,
OpenBrace,
CloseBracket,
CloseBrace,
Backslash,
Pipe,
CapsLock,
A,
S,
D,
F,
G,
H,
J,
K,
L,
SemiColon,
Colon,
Apostrophe,
Quote,
Return,
LShift,
Z,
X,
C,
V,
B,
N,
M,
Comma,
LessThan,
Period,
GreaterThan,
ForwardSlash,
QuestionMark,
RShift,
LFunction,
LControl,
LOption,
LWindows,
LCommand,
Space,
RAlt,
LAlt,
RCommand,
RWindows,
ROption,
RFunction,
RControl,
Insert,
Delete,
Home,
End,
PageUp,
PageDown,
UpArrow,
DownArrow,
LeftArrow,
RightArrow,
}Variants§
Escape
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
Backtick
Tilde
Num1
ExclamationPoint
Num2
At
Num3
Hashtag
Num4
Dollar
Num5
Percent
Num6
Caret
Num7
Ampersand
Num8
Asterisks
Num9
OpenParenthesis
Num0
CloseParenthesis
Minus
Underscore
Equals
Plus
Backspace
Tab
Q
W
E
R
T
Y
U
I
O
P
OpenBracket
OpenBrace
CloseBracket
CloseBrace
Backslash
Pipe
CapsLock
A
S
D
F
G
H
J
K
L
SemiColon
Colon
Apostrophe
Quote
Return
LShift
Z
X
C
V
B
N
M
Comma
LessThan
Period
GreaterThan
ForwardSlash
QuestionMark
RShift
LFunction
LControl
LOption
LWindows
LCommand
Space
RAlt
LAlt
RCommand
RWindows
ROption
RFunction
RControl
Insert
Delete
Home
End
PageUp
PageDown
UpArrow
DownArrow
LeftArrow
RightArrow
Implementations§
Source§impl KeyCode
impl KeyCode
pub fn as_modifier(&self) -> Option<KeyModifier>
Trait Implementations§
impl Eq for KeyCode
impl StructuralPartialEq for KeyCode
Auto Trait Implementations§
impl Freeze for KeyCode
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnwindSafe for KeyCode
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