Skip to content
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

Fix: Resolved issue with broken IME composing rect in Windows desktop(re-implementation) #2282

Merged

Conversation

agata
Copy link
Contributor

@agata agata commented Sep 25, 2024

Description

I have re-implemented the changes from #2239 that were previously reverted. In this implementation, when the ComposingRange has an invalid position, the position is no longer updated in TextInputConnection. During the composing phase, the correct ComposingRange is generally retrieved, and the display position is determined based on that information, so no issues occur. The exception that caused the revert has also been resolved. I have confirmed that this behavior works correctly across Windows, Mac, Web, iOS, and Android.

Before:
https://github.com/user-attachments/assets/3afd158f-73f1-45ba-b56e-56ff4c9b965a

After:
https://github.com/user-attachments/assets/e9246da5-6ed0-416d-b358-36bc83f74c62

Related Issues

Type of Change

  • New feature: Adds new functionality without breaking existing features.
  • 🛠️ Bug fix: Resolves an issue without altering current behavior.
  • 🧹 Code refactor: Code restructuring that does not affect behavior.
  • Breaking change: Alters existing functionality and requires updates.
  • 🧪 Tests: Adds new tests or modifies existing tests.
  • 📝 Documentation: Updates or additions to documentation.
  • 🗑️ Chore: Routine tasks, or maintenance.
  • Build configuration change: Changes to build or deploy processes.

Suggestions

… app

- Fixed issue where the composing rect would break during IME conversion.
- When the composing region is unknown, it now avoids calling setComposingRect on TextInputConnection.
@singerdmx singerdmx merged commit 52143d4 into singerdmx:master Sep 25, 2024
2 checks passed
@EchoEllet
Copy link
Collaborator

@singerdmx Can we review the changes before merging PRs as we discussed this in previous issues?

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.

3 participants