Closed m-sasha closed 1 month ago
This is part of the problem reported here: https://github.com/JetBrains/compose-multiplatform/issues/4231
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug When a window is hidden and then visible again, the focus is not restored to the element that had it before.
Affected platforms Select one of the platforms below:
Versions
To Reproduce
It seems the focus is actively moved away from the currently focused element by
ComposeSceneMediator.focusListener.focusGained
.https://github.com/JetBrains/compose-multiplatform/assets/5230206/56f6930f-23bf-4d35-97ea-891560912d82
Expected behavior Focus should be kept/restored to the element that had it when the window became hidden.