From 3e0b1e66905135e22f84922af7521fcfd55422b9 Mon Sep 17 00:00:00 2001 From: Robert Verst Date: Sat, 3 Apr 2021 07:06:02 +0200 Subject: [PATCH] [Keymap] Fixing userspace `rverst` (#12422) Co-authored-by: Robert Verst --- users/rverst/rverst.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/users/rverst/rverst.c b/users/rverst/rverst.c index 4e8aa43e4df6..0524c6011d76 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;