I’ve created a Cut, Copy and Paste macro which are activated when I press the Right-Function + X, C or V.
Now I’d like to enable the LED under these keys when I press the Right-Function keys.
I tried the following code:
if (Layer.isOn(2)) {
if ((k.raw == Key_Z.raw) || (k.raw == Key_X.raw) || (k.raw == Key_C.raw) || (k.raw == Key_V.raw)) {
::LEDControl.setCrgbAt(r, c, highlight_color);
}
}
but that obviously won’t work as the pressed key is a macro key and not the X,C,V.
How can I check if the value in “k” is a macro key?