Enum Key
#[non_exhaustive]
pub enum Key
Key mapping
This is an incomplete mapping of keys that are supported for reading from the keyboard.
Variants
-
Unknown -
UnknownEscSeq(Vec<char>) Unrecognized sequence containing Esc and a list of chars
-
ArrowLeft -
ArrowRight -
ArrowUp -
ArrowDown -
Enter -
Escape -
Backspace -
Home -
End -
Tab -
BackTab -
Alt -
Del -
Shift -
Insert -
PageUp -
PageDown -
Char(char) -
CtrlC
Trait Implementations
impl Clone for Key
fn clone(&self) -> Self
impl Debug for Key
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Key
impl Hash for Key
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for Key
fn eq(&self, other: &Self) -> bool