Skip to content

Commit

Permalink
Unify the key up/down behaviour of RGB keycodes (#15730)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Jan 6, 2022
1 parent 2387a95 commit 8dbc8a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions quantum/process_keycode/process_rgb.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@ static void __attribute__((noinline, unused)) handleKeycodeRGBMode(const uint8_t
* Handle keycodes for both rgblight and rgbmatrix
*/
bool process_rgb(const uint16_t keycode, const keyrecord_t *record) {
#ifndef SPLIT_KEYBOARD
if (record->event.pressed) {
#else
// Split keyboards need to trigger on key-up for edge-case issue
// need to trigger on key-up for edge-case issue
if (!record->event.pressed) {
#endif
#if (defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_DISABLE_KEYCODES)) || (defined(RGB_MATRIX_ENABLE) && !defined(RGB_MATRIX_DISABLE_KEYCODES))
uint8_t shifted = get_mods() & MOD_MASK_SHIFT;
#endif
Expand Down

0 comments on commit 8dbc8a8

Please sign in to comment.