diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/question.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs index 426daa9..71c3ea2 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -149,6 +149,9 @@ pub fn ask<B: Backend>( } Key::Char(c) => { state.input.push(c); + if is_correct(&state.input, &card.responses) { + state.answer = Answer::Difficulty { difficulty: Difficulty::Good } + } } Key::Backspace => { state.input.pop(); |