diff options
| author | Thomas Museus Dabay <41303137+thomas-m-d@users.noreply.github.com> | 2021-06-15 22:35:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-15 20:35:31 -0700 |
| commit | c00a9937f2ed322ab4dc8927975eae34a965e145 (patch) | |
| tree | 9abecb264522ded93eeabe35c23a7c790550e936 /docs/one_shot_keys.md | |
| parent | d0a3506d0f8663bbd6853bb0176e3628b7fab44a (diff) | |
| download | qmk_firmware-c00a9937f2ed322ab4dc8927975eae34a965e145.tar.gz qmk_firmware-c00a9937f2ed322ab4dc8927975eae34a965e145.zip | |
[Docs] Update one_shot_keys.md (#12291)
Diffstat (limited to 'docs/one_shot_keys.md')
| -rw-r--r-- | docs/one_shot_keys.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/one_shot_keys.md b/docs/one_shot_keys.md index 9fc548629..f1f93199c 100644 --- a/docs/one_shot_keys.md +++ b/docs/one_shot_keys.md | |||
| @@ -23,7 +23,7 @@ You can control the behavior of one shot keys by defining these in `config.h`: | |||
| 23 | 23 | ||
| 24 | Sometimes, you want to activate a one-shot key as part of a macro or tap dance routine. | 24 | Sometimes, you want to activate a one-shot key as part of a macro or tap dance routine. |
| 25 | 25 | ||
| 26 | For one shot layers, you need to call `set_oneshot_layer(LAYER, ONESHOT_START)` on key down, and `clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED)` on key up. If you want to cancel the oneshot, call `reset_oneshot_layer()`. | 26 | For one shot layers, you need to call `set_oneshot_layer(LAYER, ONESHOT_START)` on key down, and `clear_oneshot_layer_state(ONESHOT_PRESSED)` on key up. If you want to cancel the oneshot, call `reset_oneshot_layer()`. |
| 27 | 27 | ||
| 28 | For one shot mods, you need to call `set_oneshot_mods(MOD_BIT(KC_*))` to set it, or `clear_oneshot_mods()` to cancel it. | 28 | For one shot mods, you need to call `set_oneshot_mods(MOD_BIT(KC_*))` to set it, or `clear_oneshot_mods()` to cancel it. |
| 29 | 29 | ||
