1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

src/trezor/ui/keyboard: don't confirm empty words

This commit is contained in:
Jan Pochyla 2018-02-22 15:19:11 +01:00
parent b5e142307b
commit 213e1b32ec

View File

@ -110,7 +110,7 @@ class MnemonicKeyboard(ui.Widget):
if self.input.touch(event, pos) == BTN_CLICKED:
# input press, either auto-complete or confirm
if content == word:
if word and content == word:
self.edit('')
return content
else: