summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2025-05-24 19:00:22 +0100
committerGitHub <noreply@github.com>2025-05-24 19:00:22 +0100
commit8b7c351e562f13bae5f25efb0120e13cfa491e9b (patch)
tree785b555dfc440e2c02da9d3609fb6f9379b024a9 /docs
parent196285c59c8ad906803747e1ca2de0de12e575cd (diff)
[Docs] Fix tap_hold code blocks (#25298)
Diffstat (limited to 'docs')
-rw-r--r--docs/tap_hold.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tap_hold.md b/docs/tap_hold.md
index f1af753eba..55cb64a498 100644
--- a/docs/tap_hold.md
+++ b/docs/tap_hold.md
@@ -450,7 +450,7 @@ Optionally, define the `is_flow_tap_key()` callback to specify where Flow Tap is
450 450
451The default implementation of this callback is: 451The default implementation of this callback is:
452 452
453```.c 453```c
454bool is_flow_tap_key(uint16_t keycode) { 454bool is_flow_tap_key(uint16_t keycode) {
455 if ((get_mods() & (MOD_MASK_CG | MOD_BIT_LALT)) != 0) { 455 if ((get_mods() & (MOD_MASK_CG | MOD_BIT_LALT)) != 0) {
456 return false; // Disable Flow Tap on hotkeys. 456 return false; // Disable Flow Tap on hotkeys.
@@ -476,7 +476,7 @@ Optionally, for further flexibility, define the `get_flow_tap_term()` callback.
476 476
477The default implementation of this callback is 477The default implementation of this callback is
478 478
479```.c 479```c
480uint16_t get_flow_tap_term(uint16_t keycode, keyrecord_t* record, 480uint16_t get_flow_tap_term(uint16_t keycode, keyrecord_t* record,
481 uint16_t prev_keycode) { 481 uint16_t prev_keycode) {
482 if (is_flow_tap_key(keycode) && is_flow_tap_key(prev_keycode)) { 482 if (is_flow_tap_key(keycode) && is_flow_tap_key(prev_keycode)) {