Merge pull request #6 from keyboardio/h/highlight-only-flagless

Highlight only those keys that have no flag set
pull/365/head
Jesse Vincent 7 years ago committed by GitHub
commit b9f7ac0669

@ -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);

Loading…
Cancel
Save