mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-21 23:03:11 +01:00
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:
parent
d7e5040873
commit
8c7559d8f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user