mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-06-30 04:52:05 +00:00
[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:
parent
dcdd037276
commit
7ecdb57414
@ -135,11 +135,11 @@ bool momentary_layer(bool key_down, void *layer) {
|
|||||||
return false;
|
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), //
|
.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, //
|
.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, //
|
.custom_action = momentary_layer, //
|
||||||
.context = (void *)LAYER_FN, //
|
.context = (void *)LAYER_FN, //
|
||||||
.trigger = KC_NO, //
|
.trigger = KC_NO, //
|
||||||
|
Loading…
Reference in New Issue
Block a user