windows: Don't propagate window char message (#9470)

Ezekiel Warren created

we were accidentally calling the input handler even when the keydown
event asked it not to be propagated

Release Notes:

- N/A

Change summary

crates/gpui/src/platform/windows/window.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

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);
         }