fix(SeedPhraseInput): fix lost focus after typing one character
Relates to: https://github.com/status-im/status-desktop/issues/4955
This commit is contained in:
parent
93e5357027
commit
18fddf7289
|
@ -17,6 +17,12 @@ Item {
|
||||||
property ListModel filteredList: ListModel { }
|
property ListModel filteredList: ListModel { }
|
||||||
signal doneInsertingWord(string word)
|
signal doneInsertingWord(string word)
|
||||||
|
|
||||||
|
onActiveFocusChanged: {
|
||||||
|
if (root.activeFocus) {
|
||||||
|
seedWordInput.input.edit.forceActiveFocus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
StatusInput {
|
StatusInput {
|
||||||
id: seedWordInput
|
id: seedWordInput
|
||||||
implicitWidth: parent.width
|
implicitWidth: parent.width
|
||||||
|
@ -115,7 +121,7 @@ Item {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
seedWordInput.text = seedWord;
|
seedWordInput.text = seedWord;
|
||||||
seedWordInput.input.edit.cursorPosition = seedWordInput.text.length;
|
seedWordInput.input.edit.cursorPosition = seedWordInput.text.length;
|
||||||
root.doneInsertingWord(seedWord);
|
root.doneInsertingWord(seedWordInput.text);
|
||||||
seedSuggestionsList.model = 0;
|
seedSuggestionsList.model = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue