diff --git a/core/embed/rust/src/ui/model_mercury/component/keyboard/passphrase.rs b/core/embed/rust/src/ui/model_mercury/component/keyboard/passphrase.rs index f08d0253dc2..da5a7cec75b 100644 --- a/core/embed/rust/src/ui/model_mercury/component/keyboard/passphrase.rs +++ b/core/embed/rust/src/ui/model_mercury/component/keyboard/passphrase.rs @@ -369,12 +369,14 @@ impl Component for PassphraseKeyboard { self.input.multi_tap.clear_pending_state(ctx); self.input.textbox.delete_last(ctx); self.after_edit(ctx); + self.input.display_style = DisplayStyle::Hidden; return None; } Some(ButtonMsg::LongPressed) => { self.input.multi_tap.clear_pending_state(ctx); self.input.textbox.clear(ctx); self.after_edit(ctx); + self.input.display_style = DisplayStyle::Hidden; return None; } _ => {} diff --git a/core/embed/rust/src/ui/model_tt/component/keyboard/passphrase.rs b/core/embed/rust/src/ui/model_tt/component/keyboard/passphrase.rs index f485d4a3b2f..48b29bda832 100644 --- a/core/embed/rust/src/ui/model_tt/component/keyboard/passphrase.rs +++ b/core/embed/rust/src/ui/model_tt/component/keyboard/passphrase.rs @@ -273,6 +273,8 @@ impl Component for PassphraseKeyboard { i.textbox.delete_last(ctx); }); self.after_edit(ctx); + self.input + .mutate(ctx, |_ctx, t| t.set_display_style(DisplayStyle::Hidden)); None }; } @@ -282,6 +284,8 @@ impl Component for PassphraseKeyboard { i.textbox.clear(ctx); }); self.after_edit(ctx); + self.input + .mutate(ctx, |_ctx, t| t.set_display_style(DisplayStyle::Hidden)); return None; } _ => {}