Skip to content

Commit

Permalink
Fix nano backspace key behavior
Browse files Browse the repository at this point in the history
Stay on backspace key until there is a PIN entry to delete
  • Loading branch information
jarevalo-ledger committed Dec 9, 2024
1 parent e8f68a6 commit 3ddcf74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib_nbgl/src/nbgl_layout_keypad_nanos.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ int nbgl_layoutUpdateKeypad(nbgl_layout_t *layout,
// if validate key is enabled and was not, select it directly
keypad->selectedKey = 11;
}
else {
// otherwise let the draw function pick a new selected
// Shuffle if selected key was not backspace or if the last pin entry has been deleted
else if ((keypad->selectedKey != 0) || (keypad->enableBackspace && !enableBackspace)) {
keypad->selectedKey = 0xFF;
}
keypad->enableValidate = enableValidate;
Expand Down

0 comments on commit 3ddcf74

Please sign in to comment.