Skip to content

Commit

Permalink
fixup! chore(core): show the last passphrase character for a while
Browse files Browse the repository at this point in the history
  • Loading branch information
bieleluk committed Dec 4, 2024
1 parent 260468f commit e8f6852
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
_ => {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}
Expand All @@ -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;
}
_ => {}
Expand Down

0 comments on commit e8f6852

Please sign in to comment.