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:
parent
260468fe83
commit
e8f685253b
@ -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;
|
||||
}
|
||||
_ => {}
|
||||
|
@ -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;
|
||||
}
|
||||
_ => {}
|
||||
|
Loading…
Reference in New Issue
Block a user