From 213e1b32ec807845c8dd9258d93b368b514be2b1 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Thu, 22 Feb 2018 15:19:11 +0100 Subject: [PATCH] src/trezor/ui/keyboard: don't confirm empty words --- src/trezor/ui/keyboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trezor/ui/keyboard.py b/src/trezor/ui/keyboard.py index b027edfbf..022b8fdae 100644 --- a/src/trezor/ui/keyboard.py +++ b/src/trezor/ui/keyboard.py @@ -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: