aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJoris2023-01-26 08:51:55 +0100
committerJoris2023-01-26 08:51:55 +0100
commitf3377edd60c9427a87a658b724161407168a7efb (patch)
tree9d43d2e5e2c17a386ea696bd1d7088dd0c7b638b /src/gui
parent24623b167acc7f0759748fda45053dbee8ab363b (diff)
Fix listening to Enter on question
Diffstat (limited to 'src/gui')
-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 {