diff options
-rwxr-xr-x | apps/keymaps/keymap-clip.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-clip.c b/apps/keymaps/keymap-clip.c index ba5b8de6f6..83e1b4b86a 100755 --- a/apps/keymaps/keymap-clip.c +++ b/apps/keymaps/keymap-clip.c | |||
@@ -165,6 +165,12 @@ static const struct button_mapping button_context_listtree_scroll_with_combo[] | |||
165 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM|CONTEXT_TREE), | 165 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM|CONTEXT_TREE), |
166 | }; /* button_context_listtree_scroll_with_combo */ | 166 | }; /* button_context_listtree_scroll_with_combo */ |
167 | 167 | ||
168 | static const struct button_mapping button_context_mainmenu[] = { | ||
169 | { ACTION_TREE_WPS, BUTTON_HOME|BUTTON_REL, BUTTON_HOME }, | ||
170 | |||
171 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_TREE), | ||
172 | }; /* button_context_mainmenu */ | ||
173 | |||
168 | static const struct button_mapping button_context_yesno[] = { | 174 | static const struct button_mapping button_context_yesno[] = { |
169 | { ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE }, | 175 | { ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE }, |
170 | 176 | ||
@@ -399,11 +405,12 @@ const struct button_mapping* get_context_mapping(int context) | |||
399 | case CONTEXT_LIST: | 405 | case CONTEXT_LIST: |
400 | return button_context_list; | 406 | return button_context_list; |
401 | case CONTEXT_TREE: | 407 | case CONTEXT_TREE: |
402 | case CONTEXT_MAINMENU: | ||
403 | if (global_settings.hold_lr_for_scroll_in_list) | 408 | if (global_settings.hold_lr_for_scroll_in_list) |
404 | return button_context_listtree_scroll_without_combo; | 409 | return button_context_listtree_scroll_without_combo; |
405 | else | 410 | else |
406 | return button_context_listtree_scroll_with_combo; | 411 | return button_context_listtree_scroll_with_combo; |
412 | case CONTEXT_MAINMENU: | ||
413 | return button_context_mainmenu; | ||
407 | case CONTEXT_CUSTOM|CONTEXT_TREE: | 414 | case CONTEXT_CUSTOM|CONTEXT_TREE: |
408 | return button_context_tree; | 415 | return button_context_tree; |
409 | 416 | ||