fn key_from_crossterm(crossterm: CrosstermKey) -> Option<Key> {
    match crossterm {
        CrosstermKey::Esc => Some(Key::Esc),
        CrosstermKey::Backspace => Some(Key::Backspace),
        CrosstermKey::Enter => Some(Key::Enter),
        CrosstermKey::Up => Some(Key::Up),
        CrosstermKey::Down => Some(Key::Down),
        CrosstermKey::Left => Some(Key::Left),
        CrosstermKey::Right => Some(Key::Right),
        CrosstermKey::Char(ch) => Some(Key::Char(ch)),
        _ => None,
    }
}
/// Translates a crossterm key to an Andiskaz key.
Translates a crossterm key to an Andiskaz key.
Translates a crossterm key to an Andiskaz key .
fn key_from_crossterm(crossterm: CrosstermKey) -> Option<Key> {
    match crossterm {
        CrosstermKey::Esc => Some(Key::Esc),
        CrosstermKey::Backspace => Some(Key::Backspace),
        CrosstermKey::Enter => Some(Key::Enter),
        CrosstermKey::Up => Some(Key::Up),
        CrosstermKey::Down => Some(Key::Down),
        CrosstermKey::Left => Some(Key::Left),
        CrosstermKey::Right => Some(Key::Right),
        CrosstermKey::Char(ch) => Some(Key::Char(ch)),
        _ => None,
    }
}
fn key_from_crossterm ( crossterm : CrosstermKey ) -> Option < Key > { match crossterm { CrosstermKey :: Esc => Some ( Key :: Esc ) , CrosstermKey :: Backspace => Some ( Key :: Backspace ) , CrosstermKey :: Enter => Some ( Key :: Enter ) , CrosstermKey :: Up => Some ( Key :: Up ) , CrosstermKey :: Down => Some ( Key :: Down ) , CrosstermKey :: Left => Some ( Key :: Left ) , CrosstermKey :: Right => Some ( Key :: Right ) , CrosstermKey :: Char ( ch ) => Some ( Key :: Char ( ch ) ) , _ => None , } }
Translates a crossterm key to an Andiskaz key.
Translates a crossterm key to an Andiskaz key .
crossterm
CrosstermKey
crossterm
CrosstermKey