[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60450] trunk/blender/intern/ghost/intern/ GHOST_SystemCocoa.mm: Fix #36891: on OS X, cmd+s or cmd+o did not work when pressing them over the
Brecht Van Lommel
brechtvanlommel at pandora.be
Mon Sep 30 21:58:57 CEST 2013
Revision: 60450
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60450
Author: blendix
Date: 2013-09-30 19:58:56 +0000 (Mon, 30 Sep 2013)
Log Message:
-----------
Fix #36891: on OS X, cmd+s or cmd+o did not work when pressing them over the
text editor.
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 2013-09-30 19:30:56 UTC (rev 60449)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm 2013-09-30 19:58:56 UTC (rev 60450)
@@ -1771,6 +1771,10 @@
if ((keyCode > 266) && (keyCode < 271))
utf8_buf[0] = '\0';
+ /* no text with command key pressed */
+ if (m_modifierMask & NSCommandKeyMask)
+ utf8_buf[0] = '\0';
+
if ((keyCode == GHOST_kKeyQ) && (m_modifierMask & NSCommandKeyMask))
break; //Cmd-Q is directly handled by Cocoa
More information about the Bf-blender-cvs
mailing list