summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Conrad <dconrad@fastmail.com>2021-08-30 21:04:39 -0500
committerSolomon Peachy <pizza@shaftnet.org>2021-09-05 16:22:25 +0000
commit4ba3231457f269a12eef8d9de8bcce0e0626741a (patch)
tree81d2deae713f522d68f643925be96eed65db9055
parent17263a813b8bd8c74b2d0b499213f8c9b7415ed6 (diff)
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
-rw-r--r--apps/keymaps/keymap-fiiom3k.c6
1 files changed, 5 insertions, 1 deletions
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[] = {