summaryrefslogtreecommitdiffstats
path: root/apps/keymaps/keymap-shanlingq1.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps/keymap-shanlingq1.c')
-rw-r--r--apps/keymaps/keymap-shanlingq1.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/keymaps/keymap-shanlingq1.c b/apps/keymaps/keymap-shanlingq1.c
index 2708266d18..f8fefe5ff3 100644
--- a/apps/keymaps/keymap-shanlingq1.c
+++ b/apps/keymaps/keymap-shanlingq1.c
@@ -69,18 +69,15 @@ static const struct button_mapping button_context_yesno[] = {
const struct button_mapping* target_get_context_mapping(int context)
{
- switch (context)
+ switch (context & ~CONTEXT_LOCKED)
{
default:
- case CONTEXT_STD | CONTEXT_LOCKED:
case CONTEXT_STD:
return button_context_standard;
- case CONTEXT_WPS | CONTEXT_LOCKED:
case CONTEXT_WPS:
return button_context_wps;
case CONTEXT_TREE:
case CONTEXT_CUSTOM|CONTEXT_TREE:
- case CONTEXT_MAINMENU | CONTEXT_LOCKED:
case CONTEXT_MAINMENU:
case CONTEXT_BOOKMARKSCREEN:
case CONTEXT_LIST: