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

Leave footer when pushing modal screen #2621

Merged
merged 2 commits into from
May 22, 2023

Conversation

rodrigogiraoserrao
Copy link
Contributor

This closes #2606.

The original issue suggests calling _set_mouse_over(None) when pushing the screen.
This is already done.
The issue was that by the time we get to _on_leave inside the footer, the modal screen is already in the stack.
This changes the implementation of _on_leave so that the footer loses focus even if it's not at the top of the stack.

Alternatively, I can change the implementation so that it loses focus if the only screens on top of the footer screen are modals.

Copy link
Collaborator

@willmcgugan willmcgugan left a comment

Choose a reason for hiding this comment

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

Nice and simple!

@rodrigogiraoserrao rodrigogiraoserrao merged commit 724fedc into main May 22, 2023
@rodrigogiraoserrao rodrigogiraoserrao deleted the leave-footer-push-modal-screen branch May 22, 2023 13:43
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.

Pushing a screen should send Leave message
2 participants