aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/question.rs2
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 {