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

fix #1354: switching overlays no longer removes focus from previous f… #1363

Merged
merged 3 commits into from
Oct 7, 2020

Conversation

toaster
Copy link
Member

@toaster toaster commented Oct 6, 2020

Description:

When the focus handler changes (for instance because an overlay is added which contains a pop-up menu) the previous handler no longer receives FocusLost. Thus the focused element is still highlighted but all focus related events (keyboard) are sent to the element focused by the new focus handler.

Fixes #1354

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

…vious focus manager

Thus the focused element in the content stays highlighted while a pop-up
menu is opened. Also the focused element stays highlighted if the menu
is opened.
However, the _one_ focus for keyboard events is moved to the overlay on top.
@toaster toaster merged commit e52a719 into fyne-io:develop Oct 7, 2020
@toaster toaster deleted the bugfix/1354 branch October 7, 2020 18:56
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.

None yet

2 participants