Fix #35340: 3D manipulator not working right after undoing with cmd+Z on OS X.

Another issue with the recent Ghost changes here. For some reason key up events
are not coming through when the command key is pressed. I can't figure out why,
for now just always handle them, still fixes the original bug.
This commit is contained in:
Brecht Van Lommel 2013-05-13 21:19:30 +00:00
parent 3e0722328e
commit 213408d4c9

@ -945,6 +945,12 @@ bool GHOST_SystemCocoa::processEvents(bool waitForEvent)
handleKeyEvent(event); handleKeyEvent(event);
} }
else { else {
// For some reason NSApp is swallowing the key up events when command
// 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))
handleKeyEvent(event);
[NSApp sendEvent:event]; [NSApp sendEvent:event];
} }