Allow user to check for Key::Space

This commit is contained in:
Daniel Collin
2020-12-13 10:00:20 +01:00
parent 2075cb4676
commit 69dc13ed2d
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -279,6 +279,7 @@ pub fn translate_key(key: &str) -> Option<egui::Key> {
"Delete" => Some(egui::Key::Delete),
"End" => Some(egui::Key::End),
"Enter" => Some(egui::Key::Enter),
"Space" => Some(egui::Key::Space),
"Esc" | "Escape" => Some(egui::Key::Escape),
"Help" | "Insert" => Some(egui::Key::Insert),
"Home" => Some(egui::Key::Home),