summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-fiiom3k.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-07-19 09:49:25 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-08-07 15:04:23 +0000
commiteeb0aaf36f6d3a322e716d202efc2754735a6280 (patch)
treeaa0c38dc61591149c4a249717f2f28dc55259069 /apps/keymaps/keymap-fiiom3k.c
parenta2bbd1a549097b6e6400ea9e3cafaab1dcac78df (diff)
fiiom3k: Add bookmark screen keymapping
Forgot to commit this back around the time I did the manual Change-Id: I8fafeec5105b4bee3380779f4cc86d3e73459cf2
Diffstat (limited to 'apps/keymaps/keymap-fiiom3k.c')
-rw-r--r--apps/keymaps/keymap-fiiom3k.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-fiiom3k.c b/apps/keymaps/keymap-fiiom3k.c
index 94d2dbc172..6de63b3514 100644
--- a/apps/keymaps/keymap-fiiom3k.c
+++ b/apps/keymaps/keymap-fiiom3k.c
@@ -92,6 +92,11 @@ static const struct button_mapping button_context_tree[] = {
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST)
}; /* button_context_tree */
+static const struct button_mapping button_context_bmark[] = {
+ {ACTION_BMS_DELETE, BUTTON_PLAY, BUTTON_NONE},
+ LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_TREE),
+}; /* button_context_bmark */
+
static const struct button_mapping button_context_list[] = {
{ACTION_LISTTREE_PGUP, BUTTON_LEFT, BUTTON_NONE},
{ACTION_LISTTREE_PGUP, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE},
@@ -270,8 +275,9 @@ const struct button_mapping* get_context_mapping(int context)
return button_context_wps;
case CONTEXT_TREE:
case CONTEXT_MAINMENU:
- case CONTEXT_BOOKMARKSCREEN:
return button_context_tree;
+ case CONTEXT_BOOKMARKSCREEN:
+ return button_context_bmark;
case CONTEXT_LIST:
return button_context_list;
case CONTEXT_SETTINGS: