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

Draft: Fix tab order in basic auth login screen #11924

Closed
wants to merge 0 commits into from

Conversation

erikjv
Copy link
Collaborator

@erikjv erikjv commented Oct 9, 2024

Fixes: #11912

@erikjv erikjv requested a review from TheOneRing October 9, 2024 14:18
@erikjv erikjv self-assigned this Oct 9, 2024
@erikjv erikjv marked this pull request as draft October 9, 2024 14:18
@erikjv
Copy link
Collaborator Author

erikjv commented Oct 9, 2024

  1. not handling the event seems to "drop" it
  2. trying to pass it to the parent doesn't seem to work
  3. manually handling tab focus fails, because I cannot seem to get hold of the item/button for the logout component

Maybe we should always show the logout button, and use the visibility to show/hide it? Or have a dummy item at the bottom which forwards the focus to the widget when it gets tab focus?

// with logout button
logOutButton.item.logOutButton.forceActiveFocus(Qt.TabFocusReason);
} else {
// there is no lougout button
widget.parentFocusWidget.focusNext();
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't parentFocusWidget be able to take care?

}
event.accepted = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

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: Tab order in Login dialog
2 participants