forked from extern/Unexpected-Keyboard
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);
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user