diff --git a/quantum/quantum.c b/quantum/quantum.c index 973fe57045d8..b5f1dfef0096 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -251,6 +251,9 @@ uint16_t get_event_keycode(keyevent_t event, bool update_layer_cache) { /* Get keycode, and then process pre tapping functionality */ bool pre_process_record_quantum(keyrecord_t *record) { uint16_t keycode = get_record_keycode(record, true); +#ifdef ORYX_ENABLE + process_record_oryx(keycode, record); +#endif return pre_process_record_kb(keycode, record) && #ifdef COMBO_ENABLE process_combo(keycode, record) && @@ -284,6 +287,7 @@ bool process_record_quantum(keyrecord_t *record) { } #endif + #ifdef TAP_DANCE_ENABLE if (preprocess_tap_dance(keycode, record)) { // The tap dance might have updated the layer state, therefore the @@ -322,9 +326,6 @@ bool process_record_quantum(keyrecord_t *record) { #ifdef HAPTIC_ENABLE process_haptic(keycode, record) && #endif // HAPTIC_ENABLE -#ifdef ORYX_ENABLE - process_record_oryx(keycode, record) && -#endif #if defined(VIA_ENABLE) process_record_via(keycode, record) && #endif