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

Add focus support for checkbox #287

Merged
merged 9 commits into from
Jun 8, 2019
Merged

Add focus support for checkbox #287

merged 9 commits into from
Jun 8, 2019

Conversation

lucor
Copy link
Member

@lucor lucor commented Jun 1, 2019

This commit updates the checkbox widget to receive focus implementing the Focusable interface.
This will allow:

  • to receive focus via Tab and Shift Tab
  • to be checked and unchecked using the "Space" key on desktop when focused

This commit updates the checkbox widget to receive focus implementing the focusable interface. This will allow:
- to receive focus via Tab and Shift Tab
- to be checked and unchecked using the "Space" key on desktop when focused
Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Looking good. 2 issues outside the comments inline:

  1. The focus code in internal/driver/focus.go should probably be checking Disablable as you can currently focus disabled widgets and I think this is the first time that was the case.
  2. The focus colour is no longer applicable because the current one is used for marking focus on background objects - but these are foreground. I am not sure if we should have 2 shades of focus colour, change the current one, or mark the focusing in a different way?

widget/check.go Outdated Show resolved Hide resolved
widget/check.go Outdated Show resolved Hide resolved
theme/icons.go Outdated Show resolved Hide resolved
@andydotxyz
Copy link
Member

This is looking great. I think there is just the comment about hover vs focus colour that I know you are already working on. Will come back to it later.

Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Great, thanks

@andydotxyz andydotxyz merged commit 82f1116 into fyne-io:develop Jun 8, 2019
@lucor lucor deleted the feature/checkbox-focus branch June 15, 2019 18:52
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