[Bf-blender-cvs] [c2eb4c6] blender-v2.72-release: OSX/Ghost: little code cleanup

Jens Verwiebe noreply at git.blender.org
Wed Oct 15 13:07:44 CEST 2014


Commit: c2eb4c60eb1d63d04c1abcce2038aac27ac33aa1
Author: Jens Verwiebe
Date:   Sun Oct 5 12:45:06 2014 +0200
Branches: blender-v2.72-release
https://developer.blender.org/rBc2eb4c60eb1d63d04c1abcce2038aac27ac33aa1

OSX/Ghost: little code cleanup

===================================================================

M	intern/ghost/intern/GHOST_SystemCocoa.mm

===================================================================

diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm
index 7b08c46..ccbac91 100644
--- a/intern/ghost/intern/GHOST_SystemCocoa.mm
+++ b/intern/ghost/intern/GHOST_SystemCocoa.mm
@@ -740,7 +740,7 @@ bool GHOST_SystemCocoa::processEvents(bool waitForEvent)
 				// For some reason NSApp is swallowing the key up events when modifier
 				// key is pressed, even if there seems to be no apparent reason to do
 				// so, as a workaround we always handle these up events.
-				if ([event type] == NSKeyUp && (([event modifierFlags] & NSCommandKeyMask) || ([event modifierFlags] & NSAlternateKeyMask)))
+				if ([event type] == NSKeyUp && ([event modifierFlags] & (NSCommandKeyMask | NSAlternateKeyMask)))
 					handleKeyEvent(event);
 
 				[NSApp sendEvent:event];




More information about the Bf-blender-cvs mailing list