From d929444a413007244155e88bf87e7c75f0d2da30 Mon Sep 17 00:00:00 2001 From: Dana Conrad Date: Mon, 23 Aug 2021 18:43:25 -0500 Subject: [PATCH] iPod: Fix Yes/No Keymap Add fallback to CONTEXT_STD and add explicit Play button cancel - Play button is not present in standard context, so it won't do anything if unknown actions are ignored. tested on ipod simulator Change-Id: Ic259fa97b6195ebbc66fcfae31265cc7aeefa421 --- apps/keymaps/keymap-ipod.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/keymaps/keymap-ipod.c b/apps/keymaps/keymap-ipod.c index ca52b6b216..e3a17fffba 100644 --- a/apps/keymaps/keymap-ipod.c +++ b/apps/keymaps/keymap-ipod.c @@ -114,7 +114,8 @@ static const struct button_mapping button_context_settings[] = { static const struct button_mapping button_context_yesno[] = { { ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE }, - LAST_ITEM_IN_LIST + { ACTION_STD_CANCEL, BUTTON_PLAY, BUTTON_NONE }, + LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) }; /* button_context_yesno */ static const struct button_mapping button_context_bmark[] = {