From f3377edd60c9427a87a658b724161407168a7efb Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 26 Jan 2023 08:51:55 +0100 Subject: Fix listening to Enter on question --- src/gui/question.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/question.rs b/src/gui/question.rs index 73e4a93..5055417 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -137,7 +137,7 @@ pub fn ask( if let Event::Key(key) = event::read()? { match state.answer { Answer::Write => match key.code { - KeyCode::Char('\n') => { + KeyCode::Enter => { let difficulty = if is_correct(&state.input, &card.responses) { Difficulty::Good } else { -- cgit v1.2.3