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:
parent
ed500dacb6
commit
324e4658ba
2 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue