Skip to content

Fix platformSpecificTextInputSession passing a constant untransformedText to the IME #1980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

m-sasha
Copy link
Member

@m-sasha m-sasha commented Apr 3, 2025

Fix PlatformTextInputSession.platformSpecificTextInputSession putting the initial untransformedText TextEditorState into SkikoPlatformTextInputMethodRequest, without ever updating it.

Instead pass a TextEditorState which delegates to the current TransformedTextFieldState.untransformedText.

This fixes (again) accented character input via long-press on macOS. Probably fixes other bugs too, as it's quite a serious issue to have the IME never receive text state updates.

Testing

  • Tested manually.
  • Added a new unit test.

This should be tested by QA

Release Notes

Fixes - Desktop

  • (prerelease fix) [macOS] Fixed accented character input via long-press.

@m-sasha m-sasha requested a review from ASalavei April 3, 2025 11:48
…ng the initial `untransformedText` TextEditorState into SkikoPlatformTextInputMethodRequest, without ever updating it.
@m-sasha m-sasha force-pushed the m-sasha/update-untransformed-textfield-state branch from d200787 to 3081823 Compare April 3, 2025 12:26
@m-sasha m-sasha merged commit 772f5dc into jb-main Apr 8, 2025
10 checks passed
@m-sasha m-sasha deleted the m-sasha/update-untransformed-textfield-state branch April 8, 2025 15:03
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