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
+1 -1
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),