summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-touchscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps/keymap-touchscreen.c')
-rw-r--r--apps/keymaps/keymap-touchscreen.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/keymaps/keymap-touchscreen.c b/apps/keymaps/keymap-touchscreen.c
index 5392431026..4b31ac6c5d 100644
--- a/apps/keymaps/keymap-touchscreen.c
+++ b/apps/keymaps/keymap-touchscreen.c
@@ -224,8 +224,12 @@ static const struct button_mapping button_context_keyboard[] = {
224 224
225const struct button_mapping* get_context_mapping(int context) 225const struct button_mapping* get_context_mapping(int context)
226{ 226{
227 if ((context&CONTEXT_REMOTE) || (context&CONTEXT_CUSTOM2)) 227 if (context & CONTEXT_CUSTOM2
228 return target_get_context_mapping(context&(~CONTEXT_CUSTOM2)); 228#if BUTTON_REMOTE != 0
229 || context & CONTEXT_REMOTE
230#endif
231 )
232 return target_get_context_mapping(context & ~CONTEXT_CUSTOM2);
229 233
230 switch (context) 234 switch (context)
231 { 235 {