trezor-firmware icon indicating copy to clipboard operation
trezor-firmware copied to clipboard

Mercury PIN keyboard exit flow

Open obrusvit opened this issue 6 months ago • 1 comments

Edit: this behavior will be used only in initial PIN setup, not generally. So this PR is postponed for now.

This PR replaces request_pin with flow_request_pin. The added benefit is that hitting 'x' button does not dismiss the keyboard immediately but rather opens a VerticalMenu with "Cancel" option. Avoiding the abrupt closing of the PIN keyboard should improve the UX somewhat.

In order to do that, this PR also introduces FlowMsg::Text(ShortString) variant which enables flows to send out strings to micropython.

Takes 2 KiB of flash.

TODO:

  • [ ] modify input_flows for cancel PIN

obrusvit avatar Jul 29 '24 22:07 obrusvit