Override the process_record_user function

This commit is contained in:
Eugenio Pastoral 2025-08-21 10:55:55 +08:00
commit 419428d6b9

View file

@ -28,6 +28,17 @@ enum custom_keycodes {
AP_GLOB = SAFE_RANGE,
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case AP_GLOB:
host_consumer_send(record->event.pressed ? AC_NEXT_KEYBOARD_LAYOUT_SELECT : 0);
return false;
}
return true;
}
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Keymap _BL: Base Layer (Default Layer)
*/