I am trying to use both the LED key and the Any key as OneShot keys to enable a layer unfortunately also called ANY:
[PRIMARY] = KEYMAP_STACKED
(XXX, Key_1, Key_2, Key_3, Key_4, Key_5, OSL(ANY),
...
OSL(ANY), Key_6, Key_7, Key_8, Key_9, Key_0, Key_Backslash,
I have ActiveModColor enabled.
KALEIDOSCOPE_INIT_PLUGINS(
...
// oneshot test
OneShot,
// activemode
ActiveModColorEffect
and
void setup() {
...
// Oneshot, reduce delay. default is 2500ms
OneShot.time_out = 1250;
// activemod test
ActiveModColorEffect.highlight_color = CRGB(0x00, 0xff, 0xff);
If I just have the Any key mapped to OSL(ANY), this works fine.
If I have both Any and LED mapped to OSL(ANY), I only get partial OneShot behavior on the LED key.
Specifically:
-
the Any key works fine: single click turns the Any key white and sets up OneShot to layer ANY, and double click turns it red and locks it ther.
-
if I single click the LED key, the Any key turns white and the layer is activated. I was expecting the LED key to turn white, but turning Any white instead is fine.
-
if I double click the LED key, I get no OneShot behavior at all. There’s no stickiness, it just turns the Any key white and then resets it again.
I’m doing this because I want to use macros in the ANY layer bound to the number keys, and I would like to sometimes activate them with one hand. So LED+1, for example, should work the same as Any+1. This works fine for ShiftToLayer(), which is my fallback, but I was hoping to get OneShot working.
Is this broken? Have I missed a mandatory config knob somewhere?
thanks!