Re: Calling GetCurrentEventKeyModifiers in a Cocoa app
Re: Calling GetCurrentEventKeyModifiers in a Cocoa app
- Subject: Re: Calling GetCurrentEventKeyModifiers in a Cocoa app
- From: Eric Schlegel <email@hidden>
- Date: Mon, 24 Oct 2005 14:06:01 -0700
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
_______________________________________________
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