ui: fix backspace on Windows, closes #481 (#482)

This commit is contained in:
iceiix 2021-01-17 18:32:13 -08:00 committed by GitHub
parent c78068e6f9
commit c505903aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {