diff options
| author | Jules Aguillon | 2024-02-17 19:31:52 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2024-02-17 23:28:31 +0100 |
| commit | 146d5203254aff5fe19b502a922c60a84c31686a (patch) | |
| tree | c42662fbb6cb0e849694ce44be448ef2b1e1cadf /srcs/juloo.keyboard2/ComposeKey.java | |
| parent | 065d9520e571eccca21e28d0e4003ebd4b7079f4 (diff) | |
| download | unexpected-keyboard-146d5203254aff5fe19b502a922c60a84c31686a.tar.gz unexpected-keyboard-146d5203254aff5fe19b502a922c60a84c31686a.zip | |
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.
Diffstat (limited to 'srcs/juloo.keyboard2/ComposeKey.java')
| -rw-r--r-- | srcs/juloo.keyboard2/ComposeKey.java | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
