[Docs] Fix example code on key_overrides.md (#25367)

The description of the code snippet says right alt, but the snippet itself contained the right control keycode
This commit is contained in:
luroc 2025-06-14 05:11:58 +02:00 committed by GitHub
parent dcdd037276
commit 7ecdb57414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,11 +135,11 @@ bool momentary_layer(bool key_down, void *layer) {
return false;
}
const key_override_t fn_override = {.trigger_mods = MOD_BIT(KC_RGUI) | MOD_BIT(KC_RCTL), //
const key_override_t fn_override = {.trigger_mods = MOD_BIT(KC_RGUI) | MOD_BIT(KC_RALT), //
.layers = ~(1 << LAYER_FN), //
.suppressed_mods = MOD_BIT(KC_RGUI) | MOD_BIT(KC_RCTL), //
.suppressed_mods = MOD_BIT(KC_RGUI) | MOD_BIT(KC_RALT), //
.options = ko_option_no_unregister_on_other_key_down, //
.negative_mod_mask = (uint8_t) ~(MOD_BIT(KC_RGUI) | MOD_BIT(KC_RCTL)), //
.negative_mod_mask = (uint8_t) ~(MOD_BIT(KC_RGUI) | MOD_BIT(KC_RALT)), //
.custom_action = momentary_layer, //
.context = (void *)LAYER_FN, //
.trigger = KC_NO, //