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

Abstract more IME specific things #36

Merged
merged 9 commits into from
Jan 28, 2025

Conversation

SadPencil
Copy link
Contributor

@SadPencil SadPencil commented Jan 23, 2025

After some tests, I found that commit 496e5ae does not fully align with PR #32 (74399f9). The following differs:

  • StartTextComposition() is called when XNATextBox.DisableIME is false && WindowManager.IMEHandler.Enabled is false in 74399f9. In 496e5ae, StartTextComposition() is called when XNATextBox.IMEDisabled is false && WindowManager.IsIMEEnabled is true (note: the last true should be false). (found by @frg2089)
  • initial value of XNATextBox.textCompositionDelay: true in 74399f9, false in 496e5ae
  • when XNATextBox.textCompositionDelay is true && string.IsNullOrEmpty(WindowManager.IMEHandler.Composition), the early return in DeleteCharacter() and Backspace() is not triggered in 74399f9, triggered in 496e5ae

The differences above stop IME from working as expected. However, instead of directly fixing them, I think it might be better to make the interface take care of these complex logics (e.g., returns whether DeleteCharacter() should have an early return for a specific XnaTextBox).

Links with CnCNet/xna-cncnet-client#537

@SadPencil SadPencil marked this pull request as ready for review January 24, 2025 10:30
@Rampastring Rampastring merged commit 4cdf488 into Rampastring:master Jan 28, 2025
@SadPencil SadPencil deleted the ime-abstract-more branch January 28, 2025 14:40
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