Modifiers are the special keyboard keys: shift, alt, control & GUI.
Modifiers can be used in two forms within ZMK:
These act like any other key code.
&kp LEFT_GUIpushes and releases the left GUI key.
Modifier functions add one or more modifiers to a code.
These functions take the form:
- Modifier functions apply a modifier to a code:
A(a capitalized A).
- They can be combined:
- Some basic codes already include a modifier function in their definition:
- There are left- and right-handed versions of each modifier (also see table above):
- Modified keys can safely be rolled-over. Modifier functions are released when another key is pressed.
&kp LS(A), then press
&kp B, release
&kp LS(A)and release
&kp Bresults in Ab. Only the A is capitalized.