Fix modifier not working on non-ASCII

Characters defined in layouts that aren't defined in KeyValue weren't
recognized as character keys. Not working with modifiers.
This commit is contained in:
Jules Aguillon 2022-01-29 18:56:10 +01:00
parent 1723288f5d
commit e0217c650d

View File

@ -97,7 +97,8 @@ class KeyValue
KeyValue kv = KeyValue.keys.get(name);
if (kv != null)
return kv;
return new KeyValue(name, name, CHAR_NONE, EVENT_NONE, 0);
char c = (name.length() == 1) ? name.charAt(0) : CHAR_NONE;
return new KeyValue(name, name, c, EVENT_NONE, 0);
}
private static void addKey(String name, String symbol, char c, int event, int flags)