Skip layer switching keys when it comes to highlighting

Together with the previous, this fixes keyboardio/Kaleidoscope#149.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent 4f7e60ec52
commit 23b341e2b3

@ -23,7 +23,7 @@ void NumLock_::loopHook(bool postClear) {
Key k = Layer.lookup(r, c);
Key layer_key = Layer.getKey(numPadLayer, r, c);
if ((k != layer_key))
if ((k != layer_key) || ((k.flags == (SYNTHETIC | SWITCH_TO_KEYMAP)) && !(k.flags & RESERVED)))
continue;
LEDControl.setCrgbAt(r, c, numpad_color);

Loading…
Cancel
Save