diff options
author | Robert Verst <github@verst.eu> | 2021-04-03 07:06:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 22:06:02 -0700 |
commit | 79a87a9c2bd808a6e7a5ef5250739850c4105c30 (patch) | |
tree | cb7f051f05e86ff98c1dc4765feb771d430c2137 /users/rverst | |
parent | 8d3581a49ffaf567c99d1868a93df4c3d9bb352e (diff) | |
download | qmk_firmware-79a87a9c2bd808a6e7a5ef5250739850c4105c30.tar.gz qmk_firmware-79a87a9c2bd808a6e7a5ef5250739850c4105c30.zip |
[Keymap] Fixing userspace `rverst` (#12422)
Co-authored-by: Robert Verst <robert.verst@tobit.com>
Diffstat (limited to 'users/rverst')
-rw-r--r-- | users/rverst/rverst.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/users/rverst/rverst.c b/users/rverst/rverst.c index 4e8aa43e4d..0524c6011d 100644 --- a/users/rverst/rverst.c +++ b/users/rverst/rverst.c @@ -138,10 +138,14 @@ void eeconfig_init_user(void) { __attribute__((weak)) bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { return true; } bool process_record_user(uint16_t keycode, keyrecord_t *record) { - if (process_record_keymap(keycode, record)) { + if (!process_record_keymap(keycode, record)) { return false; } + if (!record->event.pressed) { + return true; + } + bool ls = (get_mods() | get_weak_mods()) & MOD_BIT(KC_LSFT); bool rs = (get_mods() | get_weak_mods()) & MOD_BIT(KC_RSFT); bool as = ls || rs; |