Fiio M3K: Fix Yes/No Keymap

The yes/no keymap does not fall back to the Standard
keymapping, so keys other than Back and Power do not
cancel, though the prompt says "any other key".

Adding fallback to standard context as well as explicit
Left, Right, Vol+ and Vol- as they're not present in
the standard context.

Tested on physical m3k

Change-Id: I06409bad8dcde6586e1bf773309ef0ce464cc060
This commit is contained in:
Dana Conrad 2021-08-30 21:04:39 -05:00 committed by Solomon Peachy
parent 17263a813b
commit 4ba3231457

View file

@ -175,7 +175,11 @@ static const struct button_mapping button_context_yesnoscreen[] = {
{ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE},
{ACTION_STD_CANCEL, BUTTON_BACK, BUTTON_NONE},
{ACTION_STD_CANCEL, BUTTON_POWER, BUTTON_NONE},
LAST_ITEM_IN_LIST
{ACTION_STD_CANCEL, BUTTON_RIGHT, BUTTON_NONE},
{ACTION_STD_CANCEL, BUTTON_LEFT, BUTTON_NONE},
{ACTION_STD_CANCEL, BUTTON_VOL_UP, BUTTON_NONE},
{ACTION_STD_CANCEL, BUTTON_VOL_DOWN, BUTTON_NONE},
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
}; /* button_context_yesnoscreen */
static const struct button_mapping button_context_keyboard[] = {