Skip to content

Commit

Permalink
feat(docs): Add an example for combining just modifiers (zmkfirmware#…
Browse files Browse the repository at this point in the history
…1826)

Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
  • Loading branch information
2 people authored and FearlessSpiff committed Oct 31, 2023
1 parent 24a15f2 commit 00df1a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/codes/modifiers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ These functions take the form: `XX(code)`
- `&kp LS(A)` = `LEFT_SHIFT`+`A` (a capitalized **A**).
- They can be combined:
- `&kp LC(RA(B))` = `LEFT_CONTROL`+`RIGHT_ALT`+`B`
- They can be applied to a modifier keycode to create combined modifier keys:
- `&kp LS(LALT)` = `LEFT_SHIFT` + `LEFT_ALT`
- Some basic codes already include a modifier function in their definition:
- `DOLLAR` = `LS(NUMBER_4)`
- There are left- and right-handed versions of each modifier (also see table above):
Expand Down

0 comments on commit 00df1a3

Please sign in to comment.