pub enum Key {
Show 89 variants
Character(char),
Unidentified,
Alt,
AltGraph,
Control,
Shift,
Meta,
Super,
Hyper,
Symbol,
Fn,
FnLock,
NumLock,
CapsLock,
ScrollLock,
SymbolLock,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
F13,
F14,
F15,
F16,
F17,
F18,
F19,
F20,
F21,
F22,
F23,
F24,
Enter,
Tab,
Down,
Left,
Right,
Up,
End,
Home,
PageDown,
PageUp,
Backspace,
Space,
Clear,
Copy,
Cut,
Delete,
Insert,
Paste,
Redo,
Undo,
Accept,
Again,
Cancel,
Escape,
Execute,
Find,
Help,
Pause,
Play,
Select,
PrintScreen,
Alphanumeric,
CodeInput,
Compose,
Convert,
Dead,
HangulMode,
HanjaMode,
JunjaMode,
KanjiMode,
KanaMode,
Eisu,
Hankaku,
Hiragana,
Katakana,
HiraganaKatakana,
Romaji,
Zenkaku,
ZenkakuHankaku,
}
Expand description
A keyboard key.
Variants§
Character(char)
Unidentified
Alt
AltGraph
Control
Shift
Meta
Super
Hyper
Symbol
Fn
FnLock
NumLock
CapsLock
ScrollLock
SymbolLock
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F20
F21
F22
F23
F24
Enter
Tab
Down
Left
Right
Up
End
Home
PageDown
PageUp
Backspace
Space
Clear
Copy
Cut
Delete
Insert
Paste
Redo
Undo
Accept
Again
Cancel
Escape
Execute
Find
Help
Pause
Play
Select
PrintScreen
Alphanumeric
CodeInput
Compose
Convert
Dead
HangulMode
HanjaMode
JunjaMode
KanjiMode
KanaMode
Eisu
Hankaku
Hiragana
Katakana
HiraganaKatakana
Romaji
Zenkaku
ZenkakuHankaku
Implementations§
Trait Implementations§
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 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