CGEventRef with function key

2011-07-21 Thread Joe Turner
Hey, So I've been having some issues with posting a CGEvent with a function key as a modifier (or flag). If I call CGEventSetFlags(eventDown, kCGEventFlagMaskSecondaryFn), and then post the event, all I get is the keyCode posting (as in maybe the left arrow is pressed), but the function key is

Re: CGEventRef with function key

2011-07-21 Thread Bill Cheeseman
On Jul 21, 2011, at 5:22 PM, Joe Turner wrote: So I've been having some issues with posting a CGEvent with a function key as a modifier (or flag). If I call CGEventSetFlags(eventDown, kCGEventFlagMaskSecondaryFn), and then post the event, all I get is the keyCode posting (as in maybe the

Re: CGEventRef with function key

2011-07-21 Thread Joe Turner
Hey, I understand how events are supposed to be posted, but for command, option, control and shift, you can easily used the CGEventFlags to specify that part (and it works). So what you're saying is that for function, you do have to do it separately? I just don't understand why they would make