Revision: 41237
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41237
Author:   dfelinto
Date:     2011-10-24 06:19:17 +0000 (Mon, 24 Oct 2011)
Log Message:
-----------
utf8 osx - up and down keys are producing utf8 output. muting them out in cocoa

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm

Modified: trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm      2011-10-24 
05:00:53 UTC (rev 41236)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm      2011-10-24 
06:19:17 UTC (rev 41237)
@@ -1685,6 +1685,10 @@
                                }
                        }
 
+                       /* arrow keys should not have utf8 */
+                       if ((keyCode > 266) && (keyCode < 271))
+                               utf8_buf[0] = '\0';
+
                        if ((keyCode == GHOST_kKeyQ) && (m_modifierMask & 
NSCommandKeyMask))
                                break; //Cmd-Q is directly handled by Cocoa
 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to