This patch is incompatible with anything below Mac OS 10.10. We support Mac OS 10.5 and up. I was able to make this patch work on Mac OS 10.6 by changing this line:
NSEventModifierFlags modifiers = [event modifierFlags]; to this: NSUInteger modifiers = [event modifierFlags]; This wouldn't be enough. The [event modifierFlags] code would have to be replaced because the modifierFlags function is not available on Mac OS 10.5.