status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
288 stars 78 forks source link

Last word of seed can't be selected sometimes when importing #16418

Open anastasiyaig opened 3 days ago

anastasiyaig commented 3 days ago

Bug Report

Description

image

image

Steps to reproduce

Autoselect for seed is not working sometimes (hitting enter)

Actual behavior

Seed samples:

['crew', 'battle', 'write', 'kiwi', 'rice', 'sugar', 'twelve', 'plug', 'weasel', 'fluid', 'oyster', 'kid']
['heart', 'dog', 'shadow', 'monkey', 'muscle', 'blame', 'wife', 'claim', 'truth', 'flight', 'slab', 'rapid', 'apology', 'jeans', 'hedgehog', 'close', 'shop', 'fluid', 'urban', 'crazy', 'legend', 'scale', 'claw', 'add']

Additional Information

anastasiyaig commented 3 days ago

i dont know if that is a bug still in my tests or something we can fix in the app

thats my function (autocomplete means hitting Enter):

        for index, word in enumerate(seed_phrase, start=1):
            self._seed_phrase_input_text_edit.real_name['objectName'] = f'enterSeedPhraseInputField{index}'
            if autocomplete:
                word_to_put = word
                if len(word) > 4:
                    word_to_put = word[:-1]
                self._seed_phrase_input_text_edit.text = word_to_put
                driver.type(self._seed_phrase_input_text_edit.object, "<Return>")
            else:
                self._seed_phrase_input_text_edit.text = word