summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-07-02 12:49:52 +0000
committerQMK Bot <hello@qmk.fm>2022-07-02 12:49:52 +0000
commita6faf3bc9e9bea48679ab17dc840adf5c029d909 (patch)
treefd160c39e900ce20768c689a8e3fe5c18b6bfd1f /quantum
parentfcc14b8838281487bd048a4366113fb271d6113c (diff)
parent0365f640af0a732366f1c71e86f6534629225161 (diff)
downloadqmk_firmware-a6faf3bc9e9bea48679ab17dc840adf5c029d909.tar.gz
qmk_firmware-a6faf3bc9e9bea48679ab17dc840adf5c029d909.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum')
-rw-r--r--quantum/process_keycode/process_rgb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_rgb.c b/quantum/process_keycode/process_rgb.c
index c805bd615d..dae129786e 100644
--- a/quantum/process_keycode/process_rgb.c
+++ b/quantum/process_keycode/process_rgb.c
@@ -52,7 +52,11 @@ static void __attribute__((noinline, unused)) handleKeycodeRGBMode(const uint8_t
*/
bool process_rgb(const uint16_t keycode, const keyrecord_t *record) {
// need to trigger on key-up for edge-case issue
+#ifndef RGB_TRIGGER_ON_KEYDOWN
if (!record->event.pressed) {
+#else
+ 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