From 92050c2ab7b91b4ad72db762b2d715e384423d68 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 30 Jul 2017 09:22:19 +0200 Subject: [PATCH] Highlight only those keys that have no flag set Instead of trying to exclude layer keys, exclude everything with a flag. Thus, only the basic keys will receive the highlighting treatment, and the rest, `Prog`, `Any` and the layer keys will not. Thanks to @chughes87 for the report! Signed-off-by: Gergely Nagy --- src/Kaleidoscope-Numlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kaleidoscope-Numlock.cpp b/src/Kaleidoscope-Numlock.cpp index c6c03c50..54db9122 100644 --- a/src/Kaleidoscope-Numlock.cpp +++ b/src/Kaleidoscope-Numlock.cpp @@ -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) || ((k.flags == (SYNTHETIC | SWITCH_TO_KEYMAP)) && !(k.flags & RESERVED))) + if ((k != layer_key) || (k.flags != KEY_FLAGS)) continue; LEDControl.setCrgbAt(r, c, numpad_color);