Re: Keys down while dragging
Re: Keys down while dragging
- Subject: Re: Keys down while dragging
- From: Peter Schart <email@hidden>
- Date: Wed, 25 Oct 2006 10:32:30 -0500
On Oct 24, 2006, at 9:07 PM, Murat Konar wrote:
On Oct 24, 2006, at 6:59 PM, Adam Johnson wrote:
I would like to implement a drag-and-drop where holding the Shift key
does something different than a normal drag. How can I get the state
of the modifier keys without being the active application? Any help
would be greatly appreciated.
Does something different when?
If its when the mouse is released, you can just examine the mouseUp
event's modifier flags.
I think what he is asking -- and it is something I, too, would like
to learn how to do -- is how to change the cursor in the midst of a
drag (i.e.: before the mouseUp). Something like when you are
dragging a file in Finder and you press Option the cursor gets the
little green '+' (copy instead of move) badge, or if you press Command
+Option it changes to the curved arrow "Make alias" cursor, etc...
Apologies, Adam, if I'm putting bytes in your buffer, but as I
mentioned, I've been wondering about this myself.
pete
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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