Skip to content

Commit

Permalink
Don't mask implicit mods
Browse files Browse the repository at this point in the history
  • Loading branch information
urob committed Jul 19, 2022
1 parent 89dac4c commit 4cf66a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static zmk_mod_flags_t masked_modifiers = 0;

#define SET_MODIFIERS(mods) \
{ \
keyboard_report.body.modifiers = (mods | implicit_modifiers) & ~masked_modifiers; \
keyboard_report.body.modifiers = (mods & ~masked_modifiers) | implicit_modifiers; \
LOG_DBG("Modifiers set to 0x%02X", keyboard_report.body.modifiers); \
}

Expand Down

0 comments on commit 4cf66a4

Please sign in to comment.