mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
devdraw: OS X: fix Unicode input errors (Andrey Mirtchovski)
This commit is contained in:
parent
cdead40b9b
commit
5a764c33f5
1 changed files with 4 additions and 2 deletions
|
@ -426,9 +426,11 @@ kbdevent(EventRef event)
|
|||
keystroke(k);
|
||||
else{
|
||||
UniChar ch;
|
||||
GetEventParameter(event, kEventParamKeyUnicodes,
|
||||
OSStatus s;
|
||||
|
||||
s = GetEventParameter(event, kEventParamKeyUnicodes,
|
||||
typeUnicodeText, nil, sizeof uc, nil, &uc);
|
||||
if(uc >= 0)
|
||||
if(s == noErr)
|
||||
keystroke(uc);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue