[Bf-blender-cvs] [9241f12] master: OSX/Ghost: little code cleanup

Jens Verwiebe noreply at git.blender.org
Sun Oct 5 12:45:21 CEST 2014


Commit: 9241f12e10c7f82872f257e5fbbd6f2c68733fa7
Author: Jens Verwiebe
Date:   Sun Oct 5 12:45:06 2014 +0200
Branches: master
https://developer.blender.org/rB9241f12e10c7f82872f257e5fbbd6f2c68733fa7

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