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

Pass the composition to TextInputContext via a parameter #630

Merged

Conversation

ShawnCZek
Copy link
Contributor

We previously used an internal state for this, which is unclear from the API. Furthermore, this was wrong and outdated after all the changes made to TextInputContext throughout the time; a method called "SetText" should not be used to set any composition, as it may be used for purposes other than just IME.

I noticed this issue when writing the documentation. 😄

We previously used an internal state for this, which is unclear from the API.
Furthermore, this was wrong and outdated after all the changes made to
TextInputContext throughout the time; a method called "SetText" should not be
used to set any composition, as it may be used for purposes other than just IME.
Copy link
Owner

@mikke89 mikke89 left a comment

Choose a reason for hiding this comment

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

Nice, looks like a good improvement!

I've also noticed this, that it helps to write out the documentation, it gives some clarity trying to explain things to others :)

Include/RmlUi/Core/TextInputContext.h Outdated Show resolved Hide resolved
@mikke89 mikke89 added the enhancement New feature or request label Jul 7, 2024
@mikke89 mikke89 merged commit 6e8414f into mikke89:master Jul 7, 2024
32 checks passed
@mikke89
Copy link
Owner

mikke89 commented Jul 7, 2024

Thanks a lot for the PR! :)

For reference, this is a follow-up to: #541

@ShawnCZek ShawnCZek deleted the text_input_context_commit_composition branch July 8, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants