1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-21 12:02:19 +00:00

fixup! chore(core): show the last passphrase character for a while

This commit is contained in:
Lukas Bielesch 2024-12-04 23:03:27 +01:00
parent 260468fe83
commit e8f685253b
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}
_ => {}

View File

@ -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;
}
_ => {}