Rolling out of nested layer-while-helds in a different order? #1041
-
I have I can hold I don't care about press order, release order, or timing for this use case: if one of these is held I need a layer, if the other is held I need a layer, and if both are held I need a layer. I can see how |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Got it. I'll just be changing my two layers that I need the mirror modifier to affect to fully forked solutions. I was imagining having to use fork (or switch) for both mouse buttons but forking off of just the mirror button should work fine as then the two "while-held" conditions are independent of each other. If anyone has a simpler solution that would be great too but this should be fine. |
Beta Was this translation helpful? Give feedback.
-
I consider a BASE layer with keys to layer A and layer B. Add a virtual key Then we can change all the layer keys to always release C
I think this is a lightweight solution. |
Beta Was this translation helpful? Give feedback.
I consider a BASE layer with keys to layer A and layer B.
On layer A the layer B key is replaced with a layer C key ( and vice versa).
Add a virtual key
release_layer_C (release-layer C)
Then we can change all the layer keys to always release C
(multi (layer-while-held A) (on-release tap-vkey release_layer_C ))
On layer B the layer A key activates a layer stack
(multi (layer-while-held A) (layer-while-held C) (on-release tap-vkey release_layer_C ))