summary refs log tree commit diff
path: root/quantum
diff options
context:
space:
mode:
authorSergey Vlasov <sigprof@gmail.com>2023-05-20 15:15:55 +0300
committerGitHub <noreply@github.com>2023-05-20 22:15:55 +1000
commit21b660fa07455a0173770ccab1cd21d7c7625014 (patch)
treecbbfb86ad8adb8b807002b1c4567185778afc04f /quantum
parent6d90fa2300b463f5cc6920022a445d5ed217124c (diff)
Move `pre_process_record_kb()` before `process_combo()` (#20969)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 950be3182e..fdc24fa2d0 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -211,12 +211,11 @@ 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);
+    return pre_process_record_kb(keycode, record) &&
 #ifdef COMBO_ENABLE
-    if (!(process_combo(keycode, record))) {
-        return false;
-    }
+           process_combo(keycode, record) &&
 #endif
-    return pre_process_record_kb(keycode, record);
+           true;
 }
 
 /* Get keycode, and then call keyboard function */