Skip to content

Commit

Permalink
Use layer number as example for COMBO_ONLY_FROM_LAYER
Browse files Browse the repository at this point in the history
  • Loading branch information
filterpaper committed Aug 16, 2022
1 parent e44b624 commit 0569eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/feature_combo.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ bool process_combo_key_release(uint16_t combo_index, combo_t *combo, uint8_t key
If you, for example, use multiple base layers for different key layouts, one for QWERTY, and another one for Colemak, you might want your combos to work from the same key positions on all layers. Defining the same combos again for another layout is redundant and takes more memory. The solution is to just check the keycodes from one layer.
With `#define COMBO_ONLY_FROM_LAYER _LAYER_A` the combos' keys are always checked from layer `_LAYER_A` even though the active layer would be `_LAYER_B`.
With `#define COMBO_ONLY_FROM_LAYER 0` the combos' keys are always checked from layer `0` even though the active layer would be `1`.
## User callbacks
Expand Down

0 comments on commit 0569eaf

Please sign in to comment.