aboutsummaryrefslogtreecommitdiffstats
path: root/docs/feature_advanced_keycodes.md
diff options
context:
space:
mode:
authorridingqwerty <george.g.koenig@gmail.com>2020-02-25 13:25:52 -0500
committerGitHub <noreply@github.com>2020-02-25 13:25:52 -0500
commitb949343b783da729b1dfebd38507cc56a8cd12e3 (patch)
tree6f35b98c798d071c5ce6603f62d5088da760b5d0 /docs/feature_advanced_keycodes.md
parentf6111d49bbfeb90fdb86c4595ba339590b364da7 (diff)
downloadfirmware-b949343b783da729b1dfebd38507cc56a8cd12e3.tar.gz
firmware-b949343b783da729b1dfebd38507cc56a8cd12e3.tar.bz2
firmware-b949343b783da729b1dfebd38507cc56a8cd12e3.zip
New feature: PERMISSIVE_HOLD_PER_KEY (#7994)
* Implement 'PERMISSIVE_HOLD_PER_KEY' * Document 'PERMISSIVE_HOLD_PER_KEY' Co-authored-by: GeorgeKoenig <35542036+GeorgeKoenig@users.noreply.github.com>
Diffstat (limited to 'docs/feature_advanced_keycodes.md')
-rw-r--r--docs/feature_advanced_keycodes.md19
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
?> 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`.
+For more granular control of this feature, you can add the following to your `config.h`:
+
+```c
+#define PERMISSIVE_HOLD_PER_KEY
+```
+
+You can then add the following function to your keymap:
+
+```c
+bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case SFT_T(KC_A):
+ return true;
+ default:
+ return false;
+ }
+}
+```
+
## Ignore Mod Tap Interrupt
To enable this setting, add this to your `config.h`: