Implemented Library and Download tabs!

This commit is contained in:
2023-08-08 10:50:04 -06:00
parent d856e84b93
commit c16f234088
10 changed files with 257 additions and 61 deletions
+10
View File
@@ -7,6 +7,8 @@ use crossterm::event::{KeyCode, KeyEvent};
pub enum Key {
Up,
Down,
Left,
Right,
Enter,
Esc,
Char(char),
@@ -32,6 +34,14 @@ impl From<KeyEvent> for Key {
code: KeyCode::Down,
..
} => Key::Down,
KeyEvent {
code: KeyCode::Left,
..
} => Key::Left,
KeyEvent {
code: KeyCode::Right,
..
} => Key::Right,
KeyEvent {
code: KeyCode::Enter,
..