detect command key status
detect command key status
- Subject: detect command key status
- From: Richard Salvatierra <email@hidden>
- Date: Mon, 27 Jun 2005 10:38:18 -0400
What is the best way to detect the command key down / up?
There must be something more elegant then:
- (void) flagsChanged:(NSEvent *)theEvent
{
if([theEvent modifierFlags] == 1048840 | [theEvent
modifierFlags] == 1048584 | [theEvent modifierFlags] == 1048848){
commandKeyDown = YES;
}
if([theEvent modifierFlags] == 256){
commandKeyDown = NO;
}
}
_______________________________________________
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