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
+10
View File
@@ -6,6 +6,8 @@ pub async fn handle_key_events(key: Key, app: &mut App) {
match key {
_ if key == DEFAULT_KEYBINDINGS.up.key => handle_scroll_up(app).await,
_ if key == DEFAULT_KEYBINDINGS.down.key => handle_scroll_down(app).await,
_ if key == DEFAULT_KEYBINDINGS.submit.key => handle_submit(app).await,
_ if key == DEFAULT_KEYBINDINGS.esc.key => handle_esc(app).await,
_ => ()
}
}
@@ -16,4 +18,12 @@ async fn handle_scroll_up(app: &mut App) {
async fn handle_scroll_down(app: &mut App) {
app.data.radarr_data.movies.scroll_down();
}
async fn handle_submit(app: &mut App) {
todo!()
}
async fn handle_esc(app: &mut App) {
todo!()
}