[ODE] uppercase character keys in drawstuff/src/osx.cpp
Mark Moll
moll at ISI.EDU
Thu Sep 14 20:26:09 MST 2006
Uppercase characters are not properly handled in osx.cpp. This quick
hack fixes it:
Index: osx.cpp
===================================================================
--- osx.cpp (revision 1075)
+++ osx.cpp (working copy)
@@ -185,8 +185,9 @@
uppercase = charCode;
UppercaseText( &uppercase, 1, smSystemScript );
//printf( "Character %d [%c] [%c] modifiers
[%d]\n", charCode, charCode, uppercase, modifierMask );
-
- if( modifierMask == 0 ){
+ if (modifierMask & shiftKey)
+ charCode -= 32;
+ if( modifierMask == 0 || modifierMask&shiftKey){
if( charCode >= ' ' && charCode <=
126 && functions -> command ){
functions -> command
( charCode );
}
--
Mark
More information about the ODE
mailing list