[Keymap] Fixing userspace `rverst` (#12422)

Co-authored-by: Robert Verst <robert.verst@tobit.com>
master
Robert Verst 2021-04-03 07:06:02 +02:00 committed by GitHub
parent 8d3581a49f
commit 79a87a9c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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;