devdraw: fix OS X behavior for Spanish keyboards

R=rsc_swtch, rsc
CC=old.codebot, codebot
http://codereview.appspot.com/132045
This commit is contained in:
Enrique Soriano 2009-11-30 12:44:57 -08:00 committed by Russ Cox
parent 4fe82be00a
commit 8e692500d3

View file

@ -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;