Skip to content

Commit

Permalink
Fix tab order in basic auth login screen
Browse files Browse the repository at this point in the history
Fixes: #11912
  • Loading branch information
erikjv authored and TheOneRing committed Oct 16, 2024
1 parent 91d40e2 commit eaede7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/gui/qml/credentials/BasicAuthCredentials.qml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Credentials {
if (!credentials.isRefresh) {
widget.parentFocusWidget.focusNext();
event.accepted = true;
} else {
event.accepted = false;
}
}
}
Expand Down
8 changes: 6 additions & 2 deletions src/gui/qml/credentials/Credentials.qml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ Pane {
text: qsTr("Stay logged out")
onClicked: credentials.logOutRequested()

Keys.onTabPressed: {
widget.parentFocusWidget.focusNext();
Keys.onTabPressed: event => {
if (credentials.isRefresh) {
event.accepted = false;
} else {
widget.parentFocusWidget.focusNext();
}
}

Component.onCompleted: {
Expand Down

0 comments on commit eaede7d

Please sign in to comment.