summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-nwz.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps/keymap-nwz.c')
-rw-r--r--apps/keymaps/keymap-nwz.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/keymaps/keymap-nwz.c b/apps/keymaps/keymap-nwz.c
index 3901645eb2..36675566d3 100644
--- a/apps/keymaps/keymap-nwz.c
+++ b/apps/keymaps/keymap-nwz.c
@@ -357,17 +357,14 @@ static const struct button_mapping button_context_usb_hid_mode_mouse[] = {
357/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ 357/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */
358const struct button_mapping* get_context_mapping(int context) 358const struct button_mapping* get_context_mapping(int context)
359{ 359{
360 switch (context) 360 switch (context & ~CONTEXT_LOCKED)
361 { 361 {
362 case CONTEXT_STD | CONTEXT_LOCKED:
363 case CONTEXT_STD: 362 case CONTEXT_STD:
364 return button_context_standard; 363 return button_context_standard;
365 case CONTEXT_MAINMENU | CONTEXT_LOCKED:
366 case CONTEXT_MAINMENU: 364 case CONTEXT_MAINMENU:
367 return button_context_tree; 365 return button_context_tree;
368 case CONTEXT_SETTINGS: 366 case CONTEXT_SETTINGS:
369 return button_context_settings; 367 return button_context_settings;
370 case CONTEXT_WPS | CONTEXT_LOCKED:
371 case CONTEXT_WPS: 368 case CONTEXT_WPS:
372 return button_context_wps; 369 return button_context_wps;
373 case CONTEXT_YESNOSCREEN: 370 case CONTEXT_YESNOSCREEN: