From 8c7559d8f6bde569f139b3b6b9a79f84160ab425 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Wed, 28 Feb 2024 20:42:52 +0100 Subject: Fix localized numpad outputing wester arabic numbers The number keys were constructed in the wrong way: the rendered symbol was correct but not the underlying character that is typed. --- srcs/juloo.keyboard2/Config.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 43f9712..a63df84 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -318,7 +318,7 @@ public final class Config c = inverse_numpad_char(c); String modified = map_digit.apply(c); if (modified != null) // Was modified by script - return key.withSymbol(modified); + return KeyValue.makeStringKey(modified); if (prev_c != c) // Was inverted return key.withChar(c); break; @@ -341,7 +341,7 @@ public final class Config case Char: String modified = map_digit.apply(key.getChar()); if (modified != null) - return key.withSymbol(modified); + return KeyValue.makeStringKey(modified); break; } return key; -- cgit v1.2.3