XQuartz: Workaround weird key data reported on some layouts
This should make 'Unicode Hex Input' work as an input layout. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Acked-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
579715f830
commit
339207be6f
@ -735,7 +735,10 @@ Bool QuartzReadSystemKeymap(darwinKeyboardInfo *info) {
|
||||
if (err != noErr) continue;
|
||||
}
|
||||
|
||||
if (len > 0 && s[0] != 0x0010) {
|
||||
/* Not sure why 0x0010 is there.
|
||||
* 0x0000 - <rdar://problem/7793566> 'Unicode Hex Input' ...
|
||||
*/
|
||||
if (len > 0 && s[0] != 0x0010 && s[0] != 0x0000) {
|
||||
k[j] = ucs2keysym (s[0]);
|
||||
if (dead_key_state != 0) k[j] = make_dead_key (k[j]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user