diff options
author | Russ Cox <rsc@swtch.com> | 2008-07-02 23:42:28 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-07-02 23:42:28 -0400 |
commit | 31aedb82d308d07fb120c72fb8db8419f4a10db0 (patch) | |
tree | d4d7dc244e98f133bcb44c2deb5c70408837c86a /src | |
parent | 9b3ac170501c1f1b50a8e7eaf39d68653b3bd72d (diff) | |
download | plan9port-31aedb82d308d07fb120c72fb8db8419f4a10db0.tar.gz plan9port-31aedb82d308d07fb120c72fb8db8419f4a10db0.tar.bz2 plan9port-31aedb82d308d07fb120c72fb8db8419f4a10db0.zip |
devdraw: OS X unicode input (Andrey Mirtchovski)
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/devdraw/osx-screen.c | 7 |
1 files changed, 7 insertions, 0 deletions
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: |