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