Tidy up use of keycode range helpers (#19756)

This commit is contained in:
Joel Challis
2023-02-10 21:10:14 +00:00
committed by GitHub
parent 2ffdec5dc2
commit 1d0b4c8d38
16 changed files with 39 additions and 33 deletions

View File

@@ -45,7 +45,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
backlight_level(6);
}
if (IS_MOD(keycode)) {
if (IS_MODIFIER_KEYCODE(keycode)) {
if (record->event.pressed) {
rgblight_setrgb(RGB_RED);
} else {