diff options
author | Enrique Soriano <enrique.soriano@gmail.com> | 2009-11-30 12:44:57 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2009-11-30 12:44:57 -0800 |
commit | 8e692500d3f7047ee4a101bed5a6f608c480dab0 (patch) | |
tree | 24227b0d55a4dc74dfb4e479faaafaf806378c37 | |
parent | 4fe82be00a18d3d4841cc43b63095d588354c716 (diff) | |
download | plan9port-8e692500d3f7047ee4a101bed5a6f608c480dab0.tar.gz plan9port-8e692500d3f7047ee4a101bed5a6f608c480dab0.tar.bz2 plan9port-8e692500d3f7047ee4a101bed5a6f608c480dab0.zip |
devdraw: fix OS X behavior for Spanish keyboards
R=rsc_swtch, rsc
CC=old.codebot, codebot
http://codereview.appspot.com/132045
-rw-r--r-- | src/cmd/devdraw/osx-screen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/devdraw/osx-screen.c b/src/cmd/devdraw/osx-screen.c index 7c686ed9..f6ed3e93 100644 --- a/src/cmd/devdraw/osx-screen.c +++ b/src/cmd/devdraw/osx-screen.c @@ -485,7 +485,9 @@ kbdevent(EventRef event) k = ch; if(code < nelem(keycvt) && keycvt[code]) k = keycvt[code]; - if(k >= 0) + if(k == 0) + return noErr; + else if(k > 0) keystroke(k); else{ UniChar uc; |