Highlight activated keys label

Rendering change only.
This commit is contained in:
Jules Aguillon 2022-11-13 18:03:01 +01:00
parent 2aa98de7aa
commit c1751578ef

View File

@ -301,14 +301,13 @@ 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;
}
}