diff options
| author | Jules Aguillon | 2022-11-13 18:03:01 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2022-11-13 18:03:01 +0100 |
| commit | c1751578ef2c30a78561511d1eb37500c945ecae (patch) | |
| tree | 0f9f41fc8cca7f49f82efb1b4ceb77991698b467 /srcs | |
| parent | 2aa98de7aa9635a3deed1a64abe5d3ad421f50ff (diff) | |
| download | unexpected-keyboard-c1751578ef2c30a78561511d1eb37500c945ecae.tar.gz unexpected-keyboard-c1751578ef2c30a78561511d1eb37500c945ecae.zip | |
Highlight activated keys label
Rendering change only.
Diffstat (limited to 'srcs')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2View.java | 5 |
1 files 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)) |
