diff options
Diffstat (limited to 'docs/feature_advanced_keycodes.md')
-rw-r--r-- | docs/feature_advanced_keycodes.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/feature_advanced_keycodes.md b/docs/feature_advanced_keycodes.md index ebb24dc99..8c3449460 100644 --- a/docs/feature_advanced_keycodes.md +++ b/docs/feature_advanced_keycodes.md | |||
@@ -265,6 +265,25 @@ Normally, if you do all this within the `TAPPING_TERM` (default: 200ms) this wil | |||
265 | 265 | ||
266 | ?> If you have `Ignore Mod Tap Interrupt` enabled, as well, this will modify how both work. The regular key has the modifier added if the first key is released first or if both keys are held longer than the `TAPPING_TERM`. | 266 | ?> If you have `Ignore Mod Tap Interrupt` enabled, as well, this will modify how both work. The regular key has the modifier added if the first key is released first or if both keys are held longer than the `TAPPING_TERM`. |
267 | 267 | ||
268 | For more granular control of this feature, you can add the following to your `config.h`: | ||
269 | |||
270 | ```c | ||
271 | #define PERMISSIVE_HOLD_PER_KEY | ||
272 | ``` | ||
273 | |||
274 | You can then add the following function to your keymap: | ||
275 | |||
276 | ```c | ||
277 | bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) { | ||
278 | switch (keycode) { | ||
279 | case SFT_T(KC_A): | ||
280 | return true; | ||
281 | default: | ||
282 | return false; | ||
283 | } | ||
284 | } | ||
285 | ``` | ||
286 | |||
268 | ## Ignore Mod Tap Interrupt | 287 | ## Ignore Mod Tap Interrupt |
269 | 288 | ||
270 | To enable this setting, add this to your `config.h`: | 289 | To enable this setting, add this to your `config.h`: |