sxkbd

Firmware for RP2040-based corne split keyboard
git clone https://git.sinitax.com/sinitax/sxkbd
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 085d62c5a4c9cf37ce9de6bdbb4643e3a680450f
parent ecc81e80a5cc4320bc565e270e2185d9cf402b35
Author: Louis Burda <quent.burda@gmail.com>
Date:   Mon, 13 Feb 2023 01:23:38 +0100

fixup! Only update weakmods when new keycode is added

Diffstat:
Msrc/hid.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/hid.c b/src/hid.c @@ -296,6 +296,8 @@ process_keydown(uint32_t keysym, uint x, uint y) add_keycode(TO_KC(keysym)); } else if (IS_KC(keysym) && IS_MOD_KC(TO_KC(keysym))) { active_mods |= MOD_BIT(TO_KC(keysym)); + } else if (IS_SWITCH(keysym) && IS_MOD(keysym)) { + active_mods |= parse_modifiers(keysym); } }