mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
fix: Modern browsers encode Space as ' ' (#208)
This commit is contained in:
committed by
GitHub
parent
b72184dc7e
commit
4df8418e41
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user