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: Make Tuba.Widgets.Avatar non-focusable (#729) #730

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Dec 31, 2023

Make Tuba.Widgets.Avatar non-focusable to prevent the child button of accounts selector from being selected during tab-cycling. It is duplicate to the accounts selector itself.

Closes #729

@GeopJr
Copy link
Owner

GeopJr commented Dec 31, 2023

Nice catch!

I'd rather Widgets.Avatar stays focusable. Its proper use is to act as a button, apart from the sidebar headerbar where it's in a MenuButton (and causes the double-focus). Instead setting that specific instance's can-focus to false sounds more appropriate to me, what do you think?

<object class="TubaWidgetsAvatar" id="accounts_button_avi">
<property name="size">26</property>
</object>

Make Tuba.Widgets.Avatar non-focusable when used as a child button
of accounts selector, to prevent it from being selected during
tab-cycling.  Otherwise, it is cycled duplicate to the selector itself.
@mgorny
Copy link
Contributor Author

mgorny commented Jan 1, 2024

Thanks for the suggestion. I've updated the PR and confirmed that this variant also works.

@GeopJr
Copy link
Owner

GeopJr commented Jan 4, 2024

LGTM, thanks!

@GeopJr GeopJr merged commit 7b6a128 into GeopJr:main Jan 4, 2024
5 checks passed
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.

[Bug]: The "avatar" button occurs twice in tab cycling, only one resulting in a functional menu
2 participants