devdraw: OS X unicode input (Andrey Mirtchovski)
This commit is contained in:
parent
9b3ac17050
commit
31aedb82d3
1 changed files with 7 additions and 0 deletions
|
|
@ -427,6 +427,13 @@ kbdevent(EventRef event)
|
||||||
k = keycvt[code];
|
k = keycvt[code];
|
||||||
if(k >= 0)
|
if(k >= 0)
|
||||||
keystroke(k);
|
keystroke(k);
|
||||||
|
else{
|
||||||
|
UniChar ch;
|
||||||
|
GetEventParameter(event, kEventParamKeyUnicodes,
|
||||||
|
typeUnicodeText, nil, sizeof uc, nil, &uc);
|
||||||
|
if(uc >= 0)
|
||||||
|
keystroke(uc);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kEventRawKeyModifiersChanged:
|
case kEventRawKeyModifiersChanged:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue