fix: Modern browsers encode Space as ' ' (#208)

This commit is contained in:
Ridan Vandenbergh 2021-03-07 10:20:11 +01:00 committed by GitHub
parent b72184dc7e
commit 4df8418e41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -358,7 +358,7 @@ pub fn translate_key(key: &str) -> Option<egui::Key> {
"Tab" => Some(egui::Key::Tab),
"Backspace" => Some(egui::Key::Backspace),
"Enter" => Some(egui::Key::Enter),
"Space" => Some(egui::Key::Space),
"Space" | " " => Some(egui::Key::Space),
"Help" | "Insert" => Some(egui::Key::Insert),
"Delete" => Some(egui::Key::Delete),