Skip to content

Commit

Permalink
Merge pull request #431 from LedgerHQ/mask-backspace-when-disabled
Browse files Browse the repository at this point in the history
Mask backspace in keyboard when disabled in keyMask
  • Loading branch information
nroggeman-ledger authored Sep 20, 2023
2 parents ca36c50 + 71ccfe0 commit 80b72e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib_nbgl/src/nbgl_obj_keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static void keyboardDrawLetters(nbgl_keyboard_t *keyboard)
else {
rectArea.x0 += (BACKSPACE_KEY_WIDTH_LETTERS_ONLY - rectArea.width) / 2;
}
nbgl_drawIcon(&rectArea, BLACK, &C_backspace32px);
nbgl_drawIcon(&rectArea, (keyboard->keyMask & (1 << 26)) ? WHITE : BLACK, &C_backspace32px);

// 4th row, only in Full mode
if (!keyboard->lettersOnly) {
Expand Down

0 comments on commit 80b72e7

Please sign in to comment.