#[non_exhaustive]pub enum Keycode {
Show 35 variants
Esc,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
PrintScreen,
ScrollLock,
Pause,
Insert,
Delete,
Home,
End,
PageUp,
PageDown,
Left,
Right,
Up,
Down,
Backspace,
Tab,
CapsLock,
Enter,
Shift,
Ctrl,
Alt,
Win,
NumLock,
}
Expand description
Keycode for the key that is not a printable key. If there are more than one variant of the same key (like left/right or keypad), you can use KeyModifiers to distinguish between them.
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.
Esc
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
PrintScreen
ScrollLock
Pause
Insert
Delete
Home
End
PageUp
PageDown
Left
Right
Up
Down
Backspace
Tab
CapsLock
Enter
Shift
Ctrl
Alt
Win
NumLock
Trait Implementations§
impl Copy 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