From c505903aed2603a978f8098ab71cd4f39acf669d Mon Sep 17 00:00:00 2001 From: iceiix <43691553+iceiix@users.noreply.github.com> Date: Sun, 17 Jan 2021 18:32:13 -0800 Subject: [PATCH] ui: fix backspace on Windows, closes #481 (#482) --- src/ui/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 88d51d4..5873919 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -449,7 +449,7 @@ impl Container { } pub fn key_type(&mut self, game: &mut crate::Game, c: char) { - if c < ' ' { + if c < ' ' && c != '\x08' { return; } for el in self.focusable_elements.iter().flat_map(|v| v.upgrade()) {