Re: Calling GetCurrentEventKeyModifiers in a Cocoa app
Re: Calling GetCurrentEventKeyModifiers in a Cocoa app
- Subject: Re: Calling GetCurrentEventKeyModifiers in a Cocoa app
- From: Glen Simmons <email@hidden>
- Date: Tue, 25 Oct 2005 12:47:26 -0500
On Oct 24, 2005, at 4:06 PM, Eric Schlegel wrote:
On Oct 24, 2005, at 1:36 PM, Glen Simmons wrote:
Will GetCurrentEventKeyModifiers return an accurate result when
called from a Cocoa app? We have a case where it doesn't appear to.
I wouldn't expect it to return accurate results.
GetCurrentEventKeyModifiers returns the modifiers of the event most
recently dispatched via the Carbon event dispatcher target, and
AppKit doesn't use that event dispatching path - it uses the AppKit
event dispatching path. The only exception might be if an Carbon
window was open and was the main window inside the Cocoa app.
-eric
Thanks for confirming that.
Glen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden