pub enum Key {
}Expand description
A key press received from the terminal, normalized across platforms.
Variants§
Enter
The Enter (Return) key.
Backspace
The Backspace key, deleting the character before the cursor.
ArrowLeft
The Left arrow key.
ArrowRight
The Right arrow key.
ArrowUp
The Up arrow key.
ArrowDown
The Down arrow key.
Home
The Home key.
End
The End key.
PageUp
The Page Up key.
PageDown
The Page Down key.
BackTab
A Shift+Tab (back-tab) press, moving focus backward.
Delete
The Delete key, deleting the character at the cursor.
Insert
The Insert key.
Char(char)
A printable character key.
Alt(char)
A character pressed together with the Alt modifier.
Ctrl(char)
A character pressed together with the Ctrl modifier.
Esc
The Escape key.
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 UnsafeUnpin 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