diff options
Diffstat (limited to 'docs/feature_auto_shift.md')
-rw-r--r-- | docs/feature_auto_shift.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/feature_auto_shift.md b/docs/feature_auto_shift.md index 8e04d9dd3..ec7eeaaa0 100644 --- a/docs/feature_auto_shift.md +++ b/docs/feature_auto_shift.md | |||
@@ -109,6 +109,33 @@ Do not Auto Shift numeric keys, zero through nine. | |||
109 | 109 | ||
110 | Do not Auto Shift alpha characters, which include A through Z. | 110 | Do not Auto Shift alpha characters, which include A through Z. |
111 | 111 | ||
112 | ### Auto Shift Per Key | ||
113 | |||
114 | This is a function that allows you to determine which keys shold be autoshifted, much like the tap-hold keys. | ||
115 | |||
116 | The default function looks like this: | ||
117 | |||
118 | ```c | ||
119 | bool get_auto_shifted_key(uint16_t keycode, keyrecord_t *record) { | ||
120 | switch (keycode) { | ||
121 | # ifndef NO_AUTO_SHIFT_ALPHA | ||
122 | case KC_A ... KC_Z: | ||
123 | # endif | ||
124 | # ifndef NO_AUTO_SHIFT_NUMERIC | ||
125 | case KC_1 ... KC_0: | ||
126 | # endif | ||
127 | # ifndef NO_AUTO_SHIFT_SPECIAL | ||
128 | case KC_TAB: | ||
129 | case KC_MINUS ... KC_SLASH: | ||
130 | case KC_NONUS_BSLASH: | ||
131 | # endif | ||
132 | return true; | ||
133 | } | ||
134 | return false; | ||
135 | } | ||
136 | ``` | ||
137 | This functionality is enabled by default, and does not need a define. | ||
138 | |||
112 | ### AUTO_SHIFT_REPEAT (simple define) | 139 | ### AUTO_SHIFT_REPEAT (simple define) |
113 | 140 | ||
114 | Enables keyrepeat. | 141 | Enables keyrepeat. |