Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
windows: Don't propagate window char message (#9470)
Ezekiel Warren31aaee913046
diff --git a/crates/gpui/src/platform/windows/window.rs b/crates/gpui/src/platform/windows/window.rsindex 2331179c4aa..b55c28fed4b 100644--- a/crates/gpui/src/platform/windows/window.rs+++ b/crates/gpui/src/platform/windows/window.rs@@ -572,7 +572,9 @@ impl WindowsWindowInner {keystroke,is_held: lparam.0 & (0x1 << 30) > 0,};- if func(PlatformInput::KeyDown(event)).default_prevented {++ let dispatch_event_result = func(PlatformInput::KeyDown(event));+ if dispatch_event_result.default_prevented || !dispatch_event_result.propagate {self.invalidate_client_area();return LRESULT(0);}