pub enum KeyCode {
}Expand description
Key identifier.
Covers printable characters, control keys, arrow keys, function keys, and navigation keys. Unrecognized keys are silently dropped by the crossterm conversion layer.
Variants§
Char(char)
A printable character (letter, digit, symbol, space, etc.).
Enter
Enter / Return key.
Backspace
Backspace key.
Tab
Tab key (forward tab).
BackTab
Shift+Tab (back tab).
Esc
Escape key.
Up
Up arrow key.
Down
Down arrow key.
Left
Left arrow key.
Right
Right arrow key.
Home
Home key.
End
End key.
PageUp
Page Up key.
PageDown
Page Down key.
Delete
Delete (forward delete) key.
F(u8)
Function key F1..F12 (and beyond). The inner u8 is the number.
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 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