Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
windows: fix 'space' keystroke keydown event (#9476)
Ezekiel Warrenac6c4f3ca811
diff --git a/crates/gpui/src/platform/windows/window.rs b/crates/gpui/src/platform/windows/window.rsindex 21f82b093c0..8dae41bb8bf 100644--- a/crates/gpui/src/platform/windows/window.rs+++ b/crates/gpui/src/platform/windows/window.rs@@ -484,9 +484,13 @@ impl WindowsWindowInner {if first_char.to_lowercase().to_string() == first_char.to_uppercase().to_string() {modifiers.shift = false;}+ let key = match first_char {+ ' ' => "space".to_string(),+ first_char => first_char.to_lowercase().to_string(),+ };Some(Keystroke {modifiers,- key: first_char.to_lowercase().to_string(),+ key,ime_key: Some(first_char.to_string()),})}