diff options
author | Dana Conrad <dconrad@fastmail.com> | 2021-08-23 18:43:25 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-08-31 18:59:42 +0000 |
commit | d929444a413007244155e88bf87e7c75f0d2da30 (patch) | |
tree | 09a74874a9163c75335b1d328d1ffccec070676f /apps/keymaps/keymap-ipod.c | |
parent | c11ed99cb453af968493018e1b83606423d9b9a0 (diff) | |
download | rockbox-d929444a413007244155e88bf87e7c75f0d2da30.tar.gz rockbox-d929444a413007244155e88bf87e7c75f0d2da30.zip |
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
Diffstat (limited to 'apps/keymaps/keymap-ipod.c')
-rw-r--r-- | apps/keymaps/keymap-ipod.c | 3 |
1 files changed, 2 insertions, 1 deletions
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[] = { | |||
114 | 114 | ||
115 | static const struct button_mapping button_context_yesno[] = { | 115 | static const struct button_mapping button_context_yesno[] = { |
116 | { ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE }, | 116 | { ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE }, |
117 | LAST_ITEM_IN_LIST | 117 | { ACTION_STD_CANCEL, BUTTON_PLAY, BUTTON_NONE }, |
118 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) | ||
118 | }; /* button_context_yesno */ | 119 | }; /* button_context_yesno */ |
119 | 120 | ||
120 | static const struct button_mapping button_context_bmark[] = { | 121 | static const struct button_mapping button_context_bmark[] = { |