From 146d5203254aff5fe19b502a922c60a84c31686a Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 17 Feb 2024 19:31:52 +0100 Subject: compose: Grey out keys that are not in sequence Keys that are not in the pending compose sequence are greyed out with the new 'FLAG_GREYED' flag. --- srcs/juloo.keyboard2/ComposeKey.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'srcs/juloo.keyboard2/ComposeKey.java') diff --git a/srcs/juloo.keyboard2/ComposeKey.java b/srcs/juloo.keyboard2/ComposeKey.java index 4a8cff7..dd805a5 100644 --- a/srcs/juloo.keyboard2/ComposeKey.java +++ b/srcs/juloo.keyboard2/ComposeKey.java @@ -14,7 +14,7 @@ public final class ComposeKey KeyValue res = apply(state, kv.getChar()); // Dim characters not part of any sequence instead of removing them. if (res == null) - return kv.withFlags(kv.getFlags() | KeyValue.FLAG_SECONDARY); + return kv.withFlags(kv.getFlags() | KeyValue.FLAG_GREYED); return res; /* These keys must not be removed. */ case Event: @@ -25,7 +25,7 @@ public final class ComposeKey case Keyevent: case Editing: case Placeholder: - return kv.withFlags(kv.getFlags() | KeyValue.FLAG_SECONDARY); + return kv.withFlags(kv.getFlags() | KeyValue.FLAG_GREYED); case Compose_pending: return null; } return null; -- cgit v1.2.3