aboutsummaryrefslogtreecommitdiffstats
path: root/docs/feature_tap_dance.md
diff options
context:
space:
mode:
authorRobert Akhmerov <zored.box@gmail.com>2019-11-16 20:20:49 +0300
committerDrashna Jaelre <drashna@live.com>2019-11-16 09:20:49 -0800
commit634b277b0710245ec1fbf167e20929aa8f28c020 (patch)
tree95d092403ff761255bd7e8e035ee27a392d7f017 /docs/feature_tap_dance.md
parent7891de7f6d64431cedbd580a3f7863533dc8be88 (diff)
downloadfirmware-634b277b0710245ec1fbf167e20929aa8f28c020.tar.gz
firmware-634b277b0710245ec1fbf167e20929aa8f28c020.tar.bz2
firmware-634b277b0710245ec1fbf167e20929aa8f28c020.zip
[Docs] Explain Tap Dance interruption (#5520)
Diffstat (limited to 'docs/feature_tap_dance.md')
-rw-r--r--docs/feature_tap_dance.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/feature_tap_dance.md b/docs/feature_tap_dance.md
index 7427a7714..f48f11b1c 100644
--- a/docs/feature_tap_dance.md
+++ b/docs/feature_tap_dance.md
@@ -333,6 +333,8 @@ And then simply use `TD(X_CTL)` anywhere in your keymap.
If you want to implement this in your userspace, then you may want to check out how [DanielGGordon](https://github.com/qmk/qmk_firmware/tree/master/users/gordon) has implemented this in their userspace.
+> In this configuration "hold" takes place **after** tap dance timeout (see `ACTION_TAP_DANCE_FN_ADVANCED_TIME`). To achieve instant hold, remove `state->interrupted` checks in conditions. As a result you may use comfortable longer tapping periods to have more time for taps and not to wait too long for holds (try starting with doubled `TAPPING_TERM`).
+
### Example 5: Using tap dance for advanced mod-tap and layer-tap keys
Tap dance can be used to emulate `MT()` and `LT()` behavior when the tapped code is not a basic keycode. This is useful to send tapped keycodes that normally require `Shift`, such as parentheses or curly braces—or other modified keycodes, such as `Control + X`.