From 805f5cb72bb04c10327b40ed0c41e3848ad9ca75 Mon Sep 17 00:00:00 2001 From: Zsolt Parragi Date: Wed, 13 May 2020 23:36:55 +0200 Subject: One shot support for swap hands (#8590) This commits add the SH_OS keycode, which works similarly to one shot layers: * while pressed, the keyboard is swapped * if no keys were pressed while it was pressed, the next key press is swapped SH_OS also supports chaining with one shot layers: OSL(x) + SH_OS + key interprets the key press on the oneshot layer. The ONESHOT_TIMEOUT setting used by one shot keys and layers is also used by oneshot swap hands. In the above chaining scenario the timeout of the oneshot layer is reset when swap hands is activated. Resolves #2682 --- docs/keycodes.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/keycodes.md') diff --git a/docs/keycodes.md b/docs/keycodes.md index 18fd81118..40a46964a 100644 --- a/docs/keycodes.md +++ b/docs/keycodes.md @@ -531,6 +531,7 @@ See also: [Swap Hands](feature_swap_hands.md) |`SH_MOFF` |Momentarily turns off swap. | |`SH_TG` |Toggles swap on and off with every key press. | |`SH_TT` |Toggles with a tap; momentary when held. | +|`SH_OS` |One shot swap hands: toggle while pressed or until next key press. | ## Unicode Support :id=unicode-support -- cgit v1.2.3