diff options
author | Joris | 2023-01-26 08:51:55 +0100 |
---|---|---|
committer | Joris | 2023-01-26 08:51:55 +0100 |
commit | f3377edd60c9427a87a658b724161407168a7efb (patch) | |
tree | 9d43d2e5e2c17a386ea696bd1d7088dd0c7b638b | |
parent | 24623b167acc7f0759748fda45053dbee8ab363b (diff) |
Fix listening to Enter on question
-rw-r--r-- | src/gui/question.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<B: Backend>( 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 { |