Determine pressed keys while dragging FROM OTHER application
Determine pressed keys while dragging FROM OTHER application
- Subject: Determine pressed keys while dragging FROM OTHER application
- From: Dominik Pich <email@hidden>
- Date: Fri, 14 Sep 2007 14:06:23 +0200
Hi,
I need to check if a specific key is pressed while receiving a drag.
When drags come from inside the process a keydown event is generated
as currentEvent and I can get that but for drags from other
applications I dont get such an event. I tried getKeys from the
carbon layer. I tried the following category on http://
www.ghosttiger.com/?p=136 and I can detect presses of CHARACTERS just
fine. A b C d <<SPACE>> as the keycodes get translated to unichars
for me.
What I cant do is detecting arrow keys.
The cateogry returns wrong unichar values for it.... Well all arrow
keys translate to the same unichar for me...
And I dont know how to interpret what getKeys tells me...... sure I
can just take the raw codes from the KeyMap but those seem to be
different for different keyboards. (not to mention architectures!?)
So... how does one go about detecting these keys (Is getKeys the
correct way?). All the Hotkey tools do it!?
Regards,
Dominik
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden