expo: Consider an item selected when a password is entered

When the user types in an unlock password then presses 'enter', select
the item containing the password. This avoids needing to click on an
item as well.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Simon Glass
2025-12-07 07:30:48 -07:00
parent 3e75f480ef
commit 6f3b890455

View File

@@ -457,6 +457,13 @@ int bootflow_menu_poll(struct expo *exp, int *seqp)
}
case EXPOACT_QUIT:
return -EPIPE;
case EXPOACT_CLOSE:
/*
* Password textline closed (Enter pressed) - treat as
* selection
*/
*seqp = act.select.id - ITEM_PASS;
break;
case EXPOACT_CLICK:
if (act.select.id == OBJ_SETTINGS)
return -ECOMM; /* layout change request */