summaryrefslogtreecommitdiffstats
path: root/apps/keymaps/keymap-ma.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps/keymap-ma.c')
-rw-r--r--apps/keymaps/keymap-ma.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/keymaps/keymap-ma.c b/apps/keymaps/keymap-ma.c
index 84d8edd7c4..aca006d071 100644
--- a/apps/keymaps/keymap-ma.c
+++ b/apps/keymaps/keymap-ma.c
@@ -188,11 +188,10 @@ static const struct button_mapping button_context_yesnoscreen[] = {
/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */
const struct button_mapping* get_context_mapping(int context)
{
- switch (context)
+ switch (context & ~CONTEXT_LOCKED)
{
/* anything that uses button_context_standard */
case CONTEXT_LIST:
- case CONTEXT_STD | CONTEXT_LOCKED:
case CONTEXT_STD:
default:
return button_context_standard;
@@ -221,14 +220,13 @@ const struct button_mapping* get_context_mapping(int context)
return button_context_settings_r_is_inc;
case CONTEXT_TREE:
- case CONTEXT_MAINMENU | CONTEXT_LOCKED:
case CONTEXT_MAINMENU:
if (global_settings.hold_lr_for_scroll_in_list)
return button_context_tree_scroll_lr;
/* else fall through to CONTEXT_TREE|CONTEXT_CUSTOM */
case CONTEXT_TREE|CONTEXT_CUSTOM:
return button_context_tree;
- case CONTEXT_WPS | CONTEXT_LOCKED:
+
case CONTEXT_WPS:
return button_context_wps;