From 31aedb82d308d07fb120c72fb8db8419f4a10db0 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 2 Jul 2008 23:42:28 -0400 Subject: devdraw: OS X unicode input (Andrey Mirtchovski) --- src/cmd/devdraw/osx-screen.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/cmd/devdraw/osx-screen.c b/src/cmd/devdraw/osx-screen.c index af489f3e..a196252b 100644 --- a/src/cmd/devdraw/osx-screen.c +++ b/src/cmd/devdraw/osx-screen.c @@ -427,6 +427,13 @@ kbdevent(EventRef event) k = keycvt[code]; if(k >= 0) keystroke(k); + else{ + UniChar ch; + GetEventParameter(event, kEventParamKeyUnicodes, + typeUnicodeText, nil, sizeof uc, nil, &uc); + if(uc >= 0) + keystroke(uc); + } break; case kEventRawKeyModifiersChanged: -- cgit v1.2.3