commit 065342058f8c98da98d8bef2affb3174b3ab3457
parent 798fb7599b585159482c64386f26bef63a2c5674
Author: Russ Cox <rsc@swtch.com>
Date: Wed, 2 Jul 2008 23:35:46 -0400
9vx/OSX: unicode input (thanks to Andrey Mirtchovski)
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/9vx/osx/screen.c b/src/9vx/osx/screen.c
@@ -410,6 +410,13 @@ kbdevent(EventRef event)
k = keycvt[code];
if(k >= 0)
latin1putc(k, kputc);
+ else{
+ UniChar uc;
+ GetEventParameter(event, kEventParamKeyUnicodes,
+ typeUnicodeText, nil, sizeof uc, nil, &uc);
+ if(uc >= 0)
+ kputc(uc);
+ }
break;
case kEventRawKeyModifiersChanged: