pub enum KeyCode {
}Expand description
A single key, crossterm-style: one KeyCode::Char variant absorbs all
printable characters instead of per-letter variants.
Variants§
Char(char)
Layout-aware produced character ('a', 'A', '?', ' ').
Space is a Char(' '), not a named variant - there is no invisible
" " string to confuse with emptiness.
Enter
The Enter / Return key.
Tab
The Tab key.
Escape
The Escape key.
Backspace
The Backspace key.
Delete
The Delete / Forward-delete key.
Insert
The Insert key.
Up
Arrow up.
Down
Arrow down.
Left
Arrow left.
Right
Arrow right.
Home
The Home key.
End
The End key.
PageUp
The Page Up key.
PageDown
The Page Down key.
F(u8)
A function key (F(1) is F1).
Unidentified
A platform key with no mapping. Matches must pass it through, never consume it: it carries no actionable meaning.
Implementations§
Trait Implementations§
impl Copy for KeyCode
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