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:
Conrad Irwin 2025-04-09 20:55:19 -06:00 committed by GitHub
parent ed500dacb6
commit 324e4658ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -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()