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

core: Drop the focus when it's made invisible #16416

Merged
merged 4 commits into from
May 28, 2024

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented May 22, 2024

When an object has focus and is made invisible, the focus should be dropped.

A test is added as always and another one is improved.

Related to #5443 as it improves FocusManager support a bit in certain situations.

@kjarosh kjarosh force-pushed the focus-invisible branch from c8dd137 to 07afa1e Compare May 22, 2024 12:12
@danielhjacobs danielhjacobs added the waiting-on-review Waiting on review from a Ruffle team member label May 22, 2024
kjarosh added 4 commits May 28, 2024 22:46
Make sure that focus change is logged even if the focus is removed.
That additionally verifies that handlers are properly called.
When an object has focus and is made invisible,
the focus should be dropped.
This test verifies the behavior of focus when its visibility is changed.
@Dinnerbone Dinnerbone enabled auto-merge (rebase) May 28, 2024 20:47
@Dinnerbone Dinnerbone merged commit 2ee5d52 into ruffle-rs:master May 28, 2024
17 checks passed
@kjarosh kjarosh deleted the focus-invisible branch May 28, 2024 21:23
@danielhjacobs danielhjacobs removed the waiting-on-review Waiting on review from a Ruffle team member label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants