diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-04-19 20:34:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-19 20:34:14 -0700 |
| commit | c02137a0d245a7be8ca44cf46f05a632cc8fc702 (patch) | |
| tree | 6576acdd6f248631b0dd9f3f0c313fcd41f6be16 /docs/feature_auto_shift.md | |
| parent | 49efd6abb0cf4c35a0d8f7ce2d9d112fe83d35e2 (diff) | |
| download | qmk_firmware-c02137a0d245a7be8ca44cf46f05a632cc8fc702.tar.gz qmk_firmware-c02137a0d245a7be8ca44cf46f05a632cc8fc702.zip | |
Add Per Key functionality for AutoShift (#11536)
Co-authored-by: Ryan <fauxpark@gmail.com>
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. |
