fix(BackUpSeed): Confirm # word input had no focus

Closes #7680
This commit is contained in:
Alexandra Betouni 2022-10-19 15:18:33 +03:00 committed by Alexandra Betouni
parent e617c8981f
commit 594983c889
2 changed files with 14 additions and 0 deletions

View File

@ -19,6 +19,16 @@ StatusStackModal {
property var privacyStore 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 { QtObject {
id: d id: d

View File

@ -20,6 +20,10 @@ StatusScrollView {
default property alias content: column.children default property alias content: column.children
function forceInputFocus() {
inputText.input.edit.forceActiveFocus();
}
implicitHeight: 520 implicitHeight: 520
clip: false clip: false