fix(StatusSeedPhraseInput): remove empty spaces in seed phrase input (#611)

This commit is contained in:
Jonathan Rainville 2022-03-30 14:23:18 -04:00 committed by Michał Cieślak
parent 4e42de03de
commit 55e29b6f67
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ Item {
seedSuggestionsList.model = filteredList; seedSuggestionsList.model = filteredList;
if ((text.length === 4) && (filteredList.count === 1) && if ((text.length === 4) && (filteredList.count === 1) &&
((input.edit.keyEvent !== Qt.Key_Backspace) && (input.edit.keyEvent !== Qt.Key_Delete))) { ((input.edit.keyEvent !== Qt.Key_Backspace) && (input.edit.keyEvent !== Qt.Key_Delete))) {
seedWordInput.text = filteredList.get(0).seedWord; seedWordInput.text = filteredList.get(0).seedWord.trim();
seedWordInput.input.edit.cursorPosition = seedWordInput.text.length; seedWordInput.input.edit.cursorPosition = seedWordInput.text.length;
seedSuggestionsList.model = 0; seedSuggestionsList.model = 0;
root.doneInsertingWord(seedWordInput.text); root.doneInsertingWord(seedWordInput.text);