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 issue that breaking IME discards input buffer #14433

Merged

Conversation

christallire
Copy link
Contributor

@christallire christallire commented Feb 1, 2024

What does the pull request do?

Breaking IME composition mode discards input composition buffer on windows Korean IME

What is the current behavior?

character is removed when If IME composition mode ends (via space, tab, number, by non-ime keys)
before-fix

What is the updated/expected behavior with this PR?

composition ends, keep the character(s)
fixed

How was the solution implemented (if it's not obvious)?

breaking IME composition puts WM_IME_COMPOSITION to the messaging loop with empty result str (GCS_RESULTSTR)
so it must be handled within WM_IME_ENDCOMPOSITION message.

FYI: One thing I've noticed is that WM_KILLFOCUS interrupts the composition state, but in my experience with IME it shouldn't. It should only be solely handled by WM_IME_*. But I think this requires a significant amount of refactoring.

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

@christallire
Copy link
Contributor Author

@dotnet-policy-service agree

@jmacato jmacato requested a review from Gillibald February 1, 2024 07:25
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0044248-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@Gillibald Gillibald self-assigned this Feb 1, 2024
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0044645-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@Gillibald Gillibald added this pull request to the merge queue Feb 8, 2024
Merged via the queue into AvaloniaUI:master with commit 63f5338 Feb 8, 2024
6 checks passed
@christallire christallire deleted the fix-breaking-ime-composition branch February 8, 2024 23:19
@Gillibald Gillibald added backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels May 24, 2024
@grokys grokys added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Jun 3, 2024
@christallire
Copy link
Contributor Author

Will this get backported 11.0.x?

@cla-avalonia
Copy link
Collaborator

cla-avalonia commented Jul 13, 2024

  • All contributors have signed the CLA.

@christallire
Copy link
Contributor Author

@cla-avalonia agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch backported-11.1.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants