tdevdraw: fix OS X behavior for Spanish keyboards - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8e692500d3f7047ee4a101bed5a6f608c480dab0 | |
parent 4fe82be00a18d3d4841cc43b63095d588354c716 | |
Author: Enrique Soriano | |
Date: Mon, 30 Nov 2009 12:44:57 -0800 devdraw: fix OS X behavior for Spanish keyboards R=rsc_swtch, rsc CC=old.codebot, codebot http://codereview.appspot.com/132045 Diffstat: M src/cmd/devdraw/osx-screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- | |
diff --git a/src/cmd/devdraw/osx-screen.c b/src/cmd/devdraw/osx-screen.c | |
t@@ -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; |