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.
This commit is contained in:
Jules Aguillon 2024-02-28 20:42:52 +01:00
parent d7e5040873
commit 8c7559d8f6

View File

@ -318,7 +318,7 @@ public final class Config
c = inverse_numpad_char(c); c = inverse_numpad_char(c);
String modified = map_digit.apply(c); String modified = map_digit.apply(c);
if (modified != null) // Was modified by script if (modified != null) // Was modified by script
return key.withSymbol(modified); return KeyValue.makeStringKey(modified);
if (prev_c != c) // Was inverted if (prev_c != c) // Was inverted
return key.withChar(c); return key.withChar(c);
break; break;
@ -341,7 +341,7 @@ public final class Config
case Char: case Char:
String modified = map_digit.apply(key.getChar()); String modified = map_digit.apply(key.getChar());
if (modified != null) if (modified != null)
return key.withSymbol(modified); return KeyValue.makeStringKey(modified);
break; break;
} }
return key; return key;