diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-02-13 01:23:38 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-02-13 01:23:38 +0100 |
| commit | 085d62c5a4c9cf37ce9de6bdbb4643e3a680450f (patch) | |
| tree | d43638060a784323465a10a534f0992a016d5931 /src | |
| parent | ecc81e80a5cc4320bc565e270e2185d9cf402b35 (diff) | |
| download | sxkbd-085d62c5a4c9cf37ce9de6bdbb4643e3a680450f.tar.gz sxkbd-085d62c5a4c9cf37ce9de6bdbb4643e3a680450f.zip | |
fixup! Only update weakmods when new keycode is added
Diffstat (limited to 'src')
| -rw-r--r-- | src/hid.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } } |
