Added better support for contexts now and improved base Radarr UI
This commit is contained in:
@@ -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),
|
||||
..
|
||||
|
||||
Reference in New Issue
Block a user