diff --git a/Cargo.toml b/Cargo.toml index 22046cc..c6cf477 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-player" -version = "0.1.20" +version = "0.1.21" edition = "2021" [dependencies] diff --git a/src/main.rs b/src/main.rs index 89a9574..74fe2f6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -626,12 +626,12 @@ async fn handle_key_event(terminal: &mut Terminal< state.move_selection_down(); } } - (KeyCode::Char('h'), _) => { + (KeyCode::Char('h'), _) | (KeyCode::Left, _) => { if !state.focus_playlist { state.collapse_selected(); } } - (KeyCode::Char('l'), _) => { + (KeyCode::Char('l'), _) | (KeyCode::Right, _) => { if !state.focus_playlist { state.expand_selected(); }