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

Bugfix: 922 #945

Merged
merged 3 commits into from May 7, 2020
Merged

Bugfix: 922 #945

merged 3 commits into from May 7, 2020

Conversation

toaster
Copy link
Member

@toaster toaster commented May 6, 2020

Description:

This PR changes the tap handling on non-native menus to not change the canvas' focus.
It allows to build menu items which interact with the focused elements (e.g. “Cut”, “Copy” and ”Paste”).

IMO this is a workaround. The visual focus should be handled layer specific (content, menu, overlay(s)). The input focus should be one one of these layers. #814 is related to this topic.

Fixes #922

Checklist:

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

This is a workaround.
The focus should be handled layer specific (content, menu, overlay(s)).
@andydotxyz
Copy link
Member

Seems like a decent workaround, but I think that introducing a new layer counter like this should be tested.
I assume they were not included for a reason, but you didn't say what that might have been.

@andydotxyz andydotxyz merged commit dad948a into fyne-io:develop May 7, 2020
@toaster toaster deleted the bugfix/922 branch May 7, 2020 14:47
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