Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Reset modifiers when the window active state changes (#28348)
Conrad Irwin324e4658ba1b
diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rsindex 4d1115abc5f..35b53a2829e 100644--- a/crates/gpui/src/window.rs+++ b/crates/gpui/src/window.rs@@ -845,6 +845,7 @@ impl Window {handle.update(&mut cx, |_, window, cx| {window.active.set(active);+ window.modifiers = window.platform_window.modifiers();window.activation_observers.clone()diff --git a/crates/project_panel/src/project_panel_tests.rs b/crates/project_panel/src/project_panel_tests.rsindex fc1a538cc9b..e35e5d25c5a 100644--- a/crates/project_panel/src/project_panel_tests.rs+++ b/crates/project_panel/src/project_panel_tests.rs@@ -2736,6 +2736,7 @@ async fn test_multiple_marked_entries(cx: &mut gpui::TestAppContext) {shift: true,..Default::default()};+ cx.run_until_parked();cx.simulate_modifiers_change(modifiers_with_shift);cx.update(|window, cx| {panel.update(cx, |this, cx| {