abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorJules Aguillon2024-02-28 20:42:52 +0100
committerJules Aguillon2024-02-28 20:42:52 +0100
commit8c7559d8f6bde569f139b3b6b9a79f84160ab425 (patch)
treed7b389afaeba42dc3fce420eefb549b8a5f9e19d
parentd7e5040873ef5f6e1e1cc541df0a9aae3b7a95c8 (diff)
downloadunexpected-keyboard-8c7559d8f6bde569f139b3b6b9a79f84160ab425.tar.gz
unexpected-keyboard-8c7559d8f6bde569f139b3b6b9a79f84160ab425.zip
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.
-rw-r--r--srcs/juloo.keyboard2/Config.java4
1 files 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;