]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
fix instructions for oneshot layer handling on key release (#7554)
authorhmkemppainen <github@guu.fi>
Sun, 8 Dec 2019 02:18:05 +0000 (04:18 +0200)
committerJoel Challis <git@zvecr.com>
Sun, 8 Dec 2019 02:18:05 +0000 (02:18 +0000)
* fix instructions for oneshot layer handling on key release

* use ONESHOT_OTHER_KEY_PRESSED instead of ONESHOT_PRESSED

Co-Authored-By: Drashna Jaelre <drashna@live.com>
docs/feature_advanced_keycodes.md

index e73258d511919cf7c1d5c1c3c1dccae5b4680b52..ec3807f400eb90ab5df28f575e5b609c4cde3798 100644 (file)
@@ -155,7 +155,7 @@ You can control the behavior of one shot keys by defining these in `config.h`:
 
 Sometimes, you want to activate a one-shot key as part of a macro or tap dance routine.  
 
-For one shot layers, you need to call `set_oneshot_layer(LAYER, ONESHOT_START)` on key down, and `set_oneshot_layer(ONESHOT_PRESSED)` on key up. If you want to cancel the oneshot, call `reset_oneshot_layer()`.
+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()`.
 
 For one shot mods, you need to call `set_oneshot_mods(MOD)` to set it, or `clear_oneshot_mods()` to cancel it.