Skip to content

Conversation

m-sasha
Copy link
Member

@m-sasha m-sasha commented Jul 1, 2025

Implement it more surgically by comparing the composition with the committed text.

Note that this breaks the case of focus moving from a Swing text field to a Compose text field (with an ongoing composition) in Corretto (but not JBR, because of InputMethodEndCompositionWorkaround).
However, because this is a relatively less frequent case than the one reported in CMP-8384, we'll have to live with it.

Fixes https://youtrack.jetbrains.com/issue/CMP-8384

Testing

Tested manually, and added a unit test.

Release Notes

Fixes - Desktop

  • Fixed the case when the IME's first event to a text field is to commit a composition.

@m-sasha m-sasha requested a review from igordmn July 1, 2025 09:54
@m-sasha m-sasha merged commit 321aac4 into jb-main Jul 1, 2025
10 checks passed
@m-sasha m-sasha deleted the m-sasha/fix-first-input-method-event-committing-text branch July 1, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants