pub enum KeyCode {
Show 17 variants
Unknown,
Enter,
Escape,
Back,
Tab,
Backspace,
Delete,
Space,
ArrowUp,
ArrowDown,
ArrowLeft,
ArrowRight,
Home,
End,
PageUp,
PageDown,
Character(char),
}Expand description
Unified physical/logical key code covering desktop, iPadOS hardware keyboard, Android, and Web.
Variants§
Unknown
Unmapped key.
Enter
Enter / Return key.
Escape
Escape key.
Back
System Back navigation key/gesture (Android hardware/gesture Back, iOS/Web back command).
Tab
Tab key.
Backspace
Backspace key.
Delete
Delete key.
Space
Spacebar.
ArrowUp
Arrow Up.
ArrowDown
Arrow Down.
ArrowLeft
Arrow Left.
ArrowRight
Arrow Right.
Home
Home key.
End
End key.
PageUp
Page Up.
PageDown
Page Down.
Character(char)
Printable character key.
Trait Implementations§
impl Copy for KeyCode
impl Eq for KeyCode
Source§impl Ord for KeyCode
impl Ord for KeyCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for KeyCode
impl PartialOrd for KeyCode
impl StructuralPartialEq for KeyCode
Auto Trait Implementations§
impl Forget for KeyCode
impl Freeze for KeyCode
impl Move for KeyCode
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnsafeUnpin 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