diff --git a/src/ui/mod.rs b/src/ui/mod.rs index c22e733..8478ec1 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -218,7 +218,7 @@ impl ElementWidget for Input<'_> { Event::Key(k) => match k.code { KeyCode::Backspace => { if self.text.len() > 0 { - self.text.remove(self.text.len() - 1); + self.text.pop(); } } KeyCode::Enter => {