Skip to content

Commit

Permalink
fix: send oryx keypress events before preprocessing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
fdidron committed Mar 27, 2024
1 parent a1d53e6 commit 50d38dc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions quantum/quantum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 50d38dc

Please sign in to comment.