Fix quantum.c keycode handling (#25322)

This commit is contained in:
Stephen Ostermiller 2025-06-02 14:24:02 -04:00 committed by GitHub
parent 820202cd53
commit 1d145c7511
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -461,8 +461,8 @@ bool process_record_quantum(keyrecord_t *record) {
} else { } else {
print("DEBUG: disabled.\n"); print("DEBUG: disabled.\n");
} }
#endif
return false; return false;
#endif
case QK_CLEAR_EEPROM: case QK_CLEAR_EEPROM:
#ifdef NO_RESET #ifdef NO_RESET
eeconfig_init(); eeconfig_init();
@ -479,13 +479,13 @@ bool process_record_quantum(keyrecord_t *record) {
#ifndef NO_ACTION_ONESHOT #ifndef NO_ACTION_ONESHOT
case QK_ONE_SHOT_TOGGLE: case QK_ONE_SHOT_TOGGLE:
oneshot_toggle(); oneshot_toggle();
break; return false;
case QK_ONE_SHOT_ON: case QK_ONE_SHOT_ON:
oneshot_enable(); oneshot_enable();
break; return false;
case QK_ONE_SHOT_OFF: case QK_ONE_SHOT_OFF:
oneshot_disable(); oneshot_disable();
break; return false;
#endif #endif
#ifdef ENABLE_COMPILE_KEYCODE #ifdef ENABLE_COMPILE_KEYCODE
case QK_MAKE: // Compiles the firmware, and adds the flash command based on keyboard bootloader case QK_MAKE: // Compiles the firmware, and adds the flash command based on keyboard bootloader
@ -512,6 +512,7 @@ bool process_record_quantum(keyrecord_t *record) {
if (temp_mod & MOD_MASK_SHIFT && temp_mod & MOD_MASK_CTRL) { if (temp_mod & MOD_MASK_SHIFT && temp_mod & MOD_MASK_CTRL) {
reset_keyboard(); reset_keyboard();
} }
return false;
} }
#endif #endif
} }