diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/devdraw/osx-screen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/devdraw/osx-screen.c b/src/cmd/devdraw/osx-screen.c index 5a7e9ea9..e8897c1d 100644 --- a/src/cmd/devdraw/osx-screen.c +++ b/src/cmd/devdraw/osx-screen.c @@ -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; |