Re: key modifiers change during drag
Re: key modifiers change during drag
- Subject: Re: key modifiers change during drag
- From: Greg Titus <email@hidden>
- Date: Wed, 8 Oct 2003 17:46:25 -0700
On Wednesday, October 8, 2003, at 05:00 PM, Seth Delackner wrote:
On Wed, Oct 08, 2003 at 07:08:33PM -0400, robert l clair wrote:
Use [theEvent modifierFlags] to get the mask of modifier keys
on mouseDown, hold on to it , do [theEvent modifierFlags] in each
drag event and check for changes ? I haven't done this but the docs do
not say that modifierFlags is restricted to Key events and the header
files
says it is valid for all events.
Yes, but you receive no events at all when the user has the
mouse down, has dragged some, and now just presses a
modifier. You receive an event next time the user nudges
the mouse. The finder's drag behavior is clearly not thusly
restricted.
You do if you have registered for the Flags Changed event type. You'll
get a flags changed event when the modifier keys change.
Hope this helps,
- Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.