I've been trying to combine multiple layers in my personal config and kept running into an annoying behavior;
it looked like virtual keys might be the solution to it, but the docs were not that helpful in understanding them
It is thanks to you¹ that I was able to see a clear example of release-layer + virtual keys being used, and now I fixed the behavior that was driving me mad this whole time! thank you so much :D
¹
|
(defvirtualkeys |
|
release_layer_TLTR (release-layer TLTR) |
|
) |
|
(defalias |
|
tl (multi (layer-while-held TL) (on-release press-vkey release_layer_TLTR)) |
|
tltltr (multi (layer-while-held TL) (layer-while-held TLTR) (on-release press-vkey release_layer_TLTR)) |
|
tr (multi (layer-while-held TR) (on-release press-vkey release_layer_TLTR)) |
|
trtltr (multi (layer-while-held TR) (layer-while-held TLTR) (on-release press-vkey release_layer_TLTR)) |
|
) |
in specific is what gave me the “aha!” moment
and as an aside, are you interested in a place where you could talk about kanata? it's certainly a software that I love to talk about, personally
if so, you could join my discord server: https://discord.gg/bgVSg362dK
I've been trying to combine multiple layers in my personal config and kept running into an annoying behavior;
it looked like virtual keys might be the solution to it, but the docs were not that helpful in understanding them
It is thanks to you¹ that I was able to see a clear example of release-layer + virtual keys being used, and now I fixed the behavior that was driving me mad this whole time! thank you so much :D
¹
TLTR/kanata/tltr.kbd
Lines 37 to 45 in 10acc22
and as an aside, are you interested in a place where you could talk about kanata? it's certainly a software that I love to talk about, personally
if so, you could join my discord server: https://discord.gg/bgVSg362dK