#[non_exhaustive]pub enum Key {
}Expand description
Backend-agnostic key input kind.
This type is marked as #[non_exhaustive] since more keys may be supported in the future.
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.
Char(char)
Normal letter key input
F(u8)
F1, F2, F3, … keys
Backspace
Backspace key
Enter
Enter or return key
Left
Left arrow key
Right
Right arrow key
Up
Up arrow key
Down
Down arrow key
Tab
Tab key
Delete
Delete key
Home
Home key
End
End key
PageUp
Page up key
PageDown
Page down key
Esc
Escape key
Copy
Copy key. This key is supported by termwiz only
Cut
Cut key. This key is supported by termwiz only
Paste
Paste key. This key is supported by termwiz only
MouseScrollDown
Virtual key to scroll down by mouse
MouseScrollUp
Virtual key to scroll up by mouse
Null
An invalid key input (this key is always ignored by TextArea)
Trait Implementations§
Source§impl From<MouseEventKind> for Key
impl From<MouseEventKind> for Key
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.