(&mut self)
| 130 | } |
| 131 | |
| 132 | pub fn backspace(&mut self) { |
| 133 | if let Some(q) = &self.current_question { |
| 134 | if q.question_type == QuestionType::Text { |
| 135 | self.text_input.pop(); |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | pub fn confirm(&mut self) -> Option<(QuestionRequest, String)> { |
| 141 | let q = self.current_question.as_ref()?; |