mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -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),
|
"Tab" => Some(egui::Key::Tab),
|
||||||
"Backspace" => Some(egui::Key::Backspace),
|
"Backspace" => Some(egui::Key::Backspace),
|
||||||
"Enter" => Some(egui::Key::Enter),
|
"Enter" => Some(egui::Key::Enter),
|
||||||
"Space" => Some(egui::Key::Space),
|
"Space" | " " => Some(egui::Key::Space),
|
||||||
|
|
||||||
"Help" | "Insert" => Some(egui::Key::Insert),
|
"Help" | "Insert" => Some(egui::Key::Insert),
|
||||||
"Delete" => Some(egui::Key::Delete),
|
"Delete" => Some(egui::Key::Delete),
|
||||||
|
|||||||
Reference in New Issue
Block a user