cosmos / ledger-cosmos-obsolete

Ledger Nano S support for Tendermint/Cosmos
Apache License 2.0
42 stars 29 forks source link

Key scrolling #67

Closed brejski closed 6 years ago

brejski commented 6 years ago

Added support for key scrolling when key does not fit the screen.

Unfortunately when we display the scrolling key, nothing is displayed in the 3rd row on the screen (which normally displays the value). According to the UI spec, we should be displaying message 'DBL CLICK TO VIEW' but I couldn't not find a way to have 2nd row scrolling and have something displayed in the 3rd row. The only way to scroll the 2nd row was to not display anything in the 3rd row. That is not great solution.

Once we are in the key scrolling mode, nothing is displayed in the 3rd row - but as soon as the user clicks (left or right button) we switch to the mode where cropped key is displayed in the 2nd row and full value is displayed in the 3rd row (as described in the spec).

This PR is mainly for discussion and investigation purposes.