Reset modifiers when the window active state changes (#28348)
Closes #23449 Release Notes: - Fixed a bug causing shift to get stuck down when the window focus changes --------- Co-authored-by: Dino <dinojoaocosta@gmail.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user