Skip to content

Commit

Permalink
fix(BackUpSeed): Confirm # word input had no focus
Browse files Browse the repository at this point in the history
Closes #7680
  • Loading branch information
alexandraB99 committed Oct 24, 2022
1 parent 76aedc3 commit a03d0ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ui/app/AppLayouts/Profile/popups/BackupSeedModal.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ StatusStackModal {

property var privacyStore

onCurrentIndexChanged: {
//StatusAnimatedStack doesn't handle well items' visibility,
//keeping this solution for now until #8024 is fixed
if (currentIndex === 2) {
confirmFirstWord.forceInputFocus();
} else if (currentIndex === 3) {
confirmSecondWord.forceInputFocus();
}
}

QtObject {
id: d

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ StatusScrollView {

default property alias content: column.children

function forceInputFocus() {
inputText.input.edit.forceActiveFocus();
}

implicitHeight: 520
clip: false

Expand Down

0 comments on commit a03d0ff

Please sign in to comment.