From 6a4abed94ec8f778b7f37687c162dd52db6f61c0 Mon Sep 17 00:00:00 2001 From: Jan Christoph Ebersbach Date: Sat, 31 Oct 2020 12:43:32 +0100 Subject: [PATCH 1/2] docs: add example of space cadet shift feature --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ce8af7442..d1fb58561 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,13 @@ Regular secondary role: (Activates the secondary role immediately and if no othe $ifInterrupted break +Regular secondary role with prevention of accidential key taps: (Activates the secondary role immediately, but activates the primary role only if the key has been pressed for at least a certain amount of time. This could be used to emulate the [Space Cadet Shift feature](https://beta.docs.qmk.fm/using-qmk/advanced-keycodes/feature_space_cadet).) + + $holdLayer leftShift + $ifInterrupted break + $ifPlaytime 200 break + $tapKey S-9 + You can refer to layers of different keymaps via a set of `keymapLayer` commands. E.g.: $holdKeymapLayer QWR base From 1b8af79a219fb6c2891dcee26214d6621a0c9548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Tu=C4=8Dek?= Date: Sat, 31 Oct 2020 13:08:06 +0100 Subject: [PATCH 2/2] Fix space cadet example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d1fb58561..39e21a0f9 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ Regular secondary role: (Activates the secondary role immediately and if no othe Regular secondary role with prevention of accidential key taps: (Activates the secondary role immediately, but activates the primary role only if the key has been pressed for at least a certain amount of time. This could be used to emulate the [Space Cadet Shift feature](https://beta.docs.qmk.fm/using-qmk/advanced-keycodes/feature_space_cadet).) - $holdLayer leftShift + $holdKey leftShift $ifInterrupted break $ifPlaytime 200 break $tapKey S-9