From c1751578ef2c30a78561511d1eb37500c945ecae Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 13 Nov 2022 18:03:01 +0100 Subject: [PATCH] Highlight activated keys label Rendering change only. --- srcs/juloo.keyboard2/Keyboard2View.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index 9af3425..05cb765 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -301,15 +301,14 @@ public class Keyboard2View extends View private int labelColor(KeyValue k, boolean isKeyDown, boolean sublabel) { - if (isKeyDown && k.hasFlags(KeyValue.FLAG_LATCH)) + if (isKeyDown) { int flags = _pointers.getKeyFlags(k); if (flags != -1) { if ((flags & KeyValue.FLAG_LOCKED) != 0) return _theme.lockedColor; - if ((flags & KeyValue.FLAG_LATCH) == 0) - return _theme.activatedColor; + return _theme.activatedColor; } } if (k.hasFlags(KeyValue.FLAG_SECONDARY))