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

Provide on_gain_focus and on_lose_focus handlers on the Window class #2009

Open
mhsmith opened this issue Jun 21, 2023 · 0 comments · May be fixed by #2096
Open

Provide on_gain_focus and on_lose_focus handlers on the Window class #2009

mhsmith opened this issue Jun 21, 2023 · 0 comments · May be fixed by #2096
Labels
enhancement New features, or improvements to existing features.

Comments

@mhsmith
Copy link
Member

mhsmith commented Jun 21, 2023

Some widgets already have on_gain_focus and on_lose_focus handlers (e.g., TextInput); it would make sense for this capability to exist at the app and window level as well.

On mobile platforms that don't have multiple windows, these handlers map well onto the "foreground/background" lifecycle handlers.

See #2006 for discussion.

@mhsmith mhsmith added the enhancement New features, or improvements to existing features. label Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant