Skip to content

Commit

Permalink
[Keymap] Fixing userspace rverst (qmk#12422)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Verst <[email protected]>
  • Loading branch information
2 people authored and makenova committed Apr 25, 2021
1 parent fcd3788 commit 3e0b1e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion users/rverst/rverst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3e0b1e6

Please sign in to comment.