Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@moko256
Copy link
Contributor

@moko256 moko256 commented Jun 25, 2022

  1. Fix the rect which TextInputPlugin::GetCursorRect returns by removing parallel transformation which adds width and height.
  2. Sets CANDIDATEFORM's exclusion area to enable the IME window to avoid the area.

I tested on Japanese Microsoft IME, Google Japanese Input and ATOK.

Before After

Fixes flutter/flutter#106555.

No changes in the flutter/tests repo.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@cbracken cbracken self-requested a review June 30, 2022 07:07
Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for correcting this! This was an error on my part when I first implemented this for Windows, and copied the expected macOS behaviour rather than implementing native Windows behaviour. It's been bothering me for a while, but I never got around to fixing it. This is really nice improvement, thanks!

LGTM stamp from a Japanese personal seal

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows] The IME window follows the right edge of the composing text, differ from native Windows apps

2 participants