1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2026-05-18 09:51:14 +02:00

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
+1 -1
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('c') => {
KeyCode::Char('c') | KeyCode::Enter => {
if list_state.selected_to_current_exercise()? {
return Ok(());
}