From cc571ea1ca6e583024f9295b131ec199aa66cfd8 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 5 Jun 2022 18:14:50 +0200 Subject: Refactor: Merge KeyValue.char and code fields These two fields couldn't have an interesting value at the same time. As we can no longer rely on a special value to distinguish between what's the kind, the kind of the key is explicitly encoded in the two most significative bits of the _flags field. Extra nice thing: This removes the special values 'EVENT_NONE' and 'CHAR_NONE'. --- srcs/juloo.keyboard2/Emoji.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srcs/juloo.keyboard2/Emoji.java') diff --git a/srcs/juloo.keyboard2/Emoji.java b/srcs/juloo.keyboard2/Emoji.java index e8ee8a1..b75069d 100644 --- a/srcs/juloo.keyboard2/Emoji.java +++ b/srcs/juloo.keyboard2/Emoji.java @@ -16,7 +16,7 @@ public class Emoji extends KeyValue protected Emoji(String name, String bytecode, String desc) { - super(name, bytecode, CHAR_NONE, EVENT_NONE, 0); + super(name, bytecode, KIND_STRING, 0, 0); _desc = desc; emojis_by_name.put(name, this); } -- cgit v1.2.3