Detect ALT key pressed during dragging
Detect ALT key pressed during dragging
- Subject: Detect ALT key pressed during dragging
- From: Lorenzo <email@hidden>
- Date: Sat, 15 May 2004 18:51:55 +0200
Hi,
within one of the methods: draggingEntered, performDragOperation,
prepareForDragOperation, I need to detect if the user is pressing the ALT
key. So I tried to use the following:
if([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask){
altPressed = YES;
}
But it doesn't work. altPressed is always NO;
Is a special method to detect the modifierFlags during the
performDragOperation method?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.