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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user