Allow selecting next exercise with enter key

This commit is contained in:
Remo Senekowitsch 2026-04-19 00:37:10 +02:00
parent b7308825ec
commit 870776d03b
No known key found for this signature in database

View File

@ -83,7 +83,7 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
} }
} }
KeyCode::Char('r') => list_state.reset_selected()?, KeyCode::Char('r') => list_state.reset_selected()?,
KeyCode::Char('c') => { KeyCode::Char('c') | KeyCode::Enter => {
if list_state.selected_to_current_exercise()? { if list_state.selected_to_current_exercise()? {
return Ok(()); return Ok(());
} }