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

Add missing request_render call when setting text selection from AccessKit #803

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mwcampbell
Copy link
Contributor

Without this, the updated text selection is neither painted nor reflected in an updated accessibility tree until the user presses a key.

Copy link
Member

@DJMcNab DJMcNab left a comment

Choose a reason for hiding this comment

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

Thanks!

Comment on lines +827 to +828
ctx.request_render();
ctx.set_ime_area(self.ime_area());
Copy link
Member

Choose a reason for hiding this comment

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

I agree that this is correct, but I wonder if we should for simplicity just use request_layout here.

Ultimately, PlainEditor does a terrible job at distinguishing between the reasons for the generation changing. I think we will want to split the concepts out at some point.

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