Added better support for contexts now and improved base Radarr UI

This commit is contained in:
2023-08-08 10:50:04 -06:00
parent 9276fb474d
commit d39acb0683
11 changed files with 407 additions and 153 deletions
+6
View File
@@ -7,6 +7,8 @@ use crossterm::event::{KeyCode, KeyEvent};
pub enum Key {
Up,
Down,
Enter,
Esc,
Char(char),
Unknown,
}
@@ -31,6 +33,10 @@ impl From<KeyEvent> for Key {
code: KeyCode::Down,
..
} => Key::Down,
KeyEvent {
code: KeyCode::Enter,
..
} => Key::Enter,
KeyEvent {
code: KeyCode::Char(c),
..