Hot Keys and CGEventRef

Nathan Day <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
I am trying to use Carbon Hot Key to send simulated keyboard events to the front application using CGEventRef, the problem is can't control the modifier keys that get sent to the front app completely. For example if the hot key contains a command modifier then if I send a up-arrow key to the front application a command+up-arrow is sent instead. I have tried to send modifier key up event to try remove the modifier key but it doesn't work. Perhaps I shouldn't be using CGEventRef I should be using something else. Any advice would be appreciated. 

Nathan Day
Software Engineer
mobile:		+61 (0)4 3863 2407
home page:	http://homepage.mac.com/nathan_day/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.