fix(StatusSeedPhraseInput): autocomplete when word not alone in the list
The problem was that if the clicked word (or tabbed) was not alone in the suggestion list, the done signal was not called. Now it is always called when clicking on using tab or enter.
This commit is contained in:
parent
1acbeb1962
commit
818374af1a
|
@ -211,9 +211,11 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function completeWordFill(seedWord) {
|
function completeWordFill(seedWord) {
|
||||||
seedWordInput.input.edit.text = seedWord.trim();
|
let seedWordTrimmed = seedWord.trim();
|
||||||
// Changing the text of the input triggers the onTextChanged, thus signalling doneInsertingWord if the condition passes
|
root.setWord(seedWordTrimmed);
|
||||||
seedWordInput.input.edit.cursorPosition = seedWordInput.text.length;
|
seedWordInput.input.edit.cursorPosition = seedWordInput.text.length;
|
||||||
|
seedSuggestionsList.model = 0;
|
||||||
|
root.doneInsertingWord(seedWordTrimmed);
|
||||||
}
|
}
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
|
Loading…
Reference in New Issue