Almost kinda functional description box

This commit is contained in:
2023-08-08 10:50:04 -06:00
parent d39acb0683
commit b24e0cdccd
16 changed files with 710 additions and 288 deletions
+4 -2
View File
@@ -26,8 +26,7 @@ impl From<KeyEvent> for Key {
fn from(key_event: KeyEvent) -> Self {
match key_event {
KeyEvent {
code: KeyCode::Up,
..
code: KeyCode::Up, ..
} => Key::Up,
KeyEvent {
code: KeyCode::Down,
@@ -37,6 +36,9 @@ impl From<KeyEvent> for Key {
code: KeyCode::Enter,
..
} => Key::Enter,
KeyEvent {
code: KeyCode::Esc, ..
} => Key::Esc,
KeyEvent {
code: KeyCode::Char(c),
..