From b102ad90781487dd00a8147330eb0c430f0ba503 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 13 Nov 2022 00:39:31 +0100 Subject: [PATCH] Fix localized keys appearing on secondary layout --- srcs/juloo.keyboard2/KeyboardData.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/srcs/juloo.keyboard2/KeyboardData.java b/srcs/juloo.keyboard2/KeyboardData.java index eaaf702..0f67dfe 100644 --- a/srcs/juloo.keyboard2/KeyboardData.java +++ b/srcs/juloo.keyboard2/KeyboardData.java @@ -436,9 +436,7 @@ class KeyboardData if (c == null) return null; KeyValue kv = apply(c.kv, c.localized); - if (kv == null) - return null; - return Corner.of_kv(kv); + return (kv == null) ? null : new Corner(kv, c.localized); } }