summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-01-06 07:52:32 +0000
committerGitHub <noreply@github.com>2022-01-06 18:52:32 +1100
commit8dbc8a802cc07271ba90af05bf57daefe5729b5b (patch)
tree1a6f6d26c1990760044a1f143bce3d19685de656 /quantum
parent2387a95be694a7edef868a8c58f4c3858a4e487a (diff)
Unify the key up/down behaviour of RGB keycodes (#15730)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/process_keycode/process_rgb.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/quantum/process_keycode/process_rgb.c b/quantum/process_keycode/process_rgb.c
index 69853cd5c4..c805bd615d 100644
--- a/quantum/process_keycode/process_rgb.c
+++ b/quantum/process_keycode/process_rgb.c
@@ -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