mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-22 12:32:02 +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.multi_tap.clear_pending_state(ctx);
|
||||||
self.input.textbox.delete_last(ctx);
|
self.input.textbox.delete_last(ctx);
|
||||||
self.after_edit(ctx);
|
self.after_edit(ctx);
|
||||||
|
self.input.display_style = DisplayStyle::Hidden;
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
Some(ButtonMsg::LongPressed) => {
|
Some(ButtonMsg::LongPressed) => {
|
||||||
self.input.multi_tap.clear_pending_state(ctx);
|
self.input.multi_tap.clear_pending_state(ctx);
|
||||||
self.input.textbox.clear(ctx);
|
self.input.textbox.clear(ctx);
|
||||||
self.after_edit(ctx);
|
self.after_edit(ctx);
|
||||||
|
self.input.display_style = DisplayStyle::Hidden;
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
@ -273,6 +273,8 @@ impl Component for PassphraseKeyboard {
|
|||||||
i.textbox.delete_last(ctx);
|
i.textbox.delete_last(ctx);
|
||||||
});
|
});
|
||||||
self.after_edit(ctx);
|
self.after_edit(ctx);
|
||||||
|
self.input
|
||||||
|
.mutate(ctx, |_ctx, t| t.set_display_style(DisplayStyle::Hidden));
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -282,6 +284,8 @@ impl Component for PassphraseKeyboard {
|
|||||||
i.textbox.clear(ctx);
|
i.textbox.clear(ctx);
|
||||||
});
|
});
|
||||||
self.after_edit(ctx);
|
self.after_edit(ctx);
|
||||||
|
self.input
|
||||||
|
.mutate(ctx, |_ctx, t| t.set_display_style(DisplayStyle::Hidden));
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
Loading…
Reference in New Issue
Block a user