From 4ba3231457f269a12eef8d9de8bcce0e0626741a Mon Sep 17 00:00:00 2001 From: Dana Conrad Date: Mon, 30 Aug 2021 21:04:39 -0500 Subject: 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 --- apps/keymaps/keymap-fiiom3k.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/keymaps/keymap-fiiom3k.c b/apps/keymaps/keymap-fiiom3k.c index 6de63b3514..4cd2691d33 100644 --- a/apps/keymaps/keymap-fiiom3k.c +++ b/apps/keymaps/keymap-fiiom3k.c @@ -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[] = { -- cgit v1.2.3