• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
detect command key status
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Is there an Open Source SIP Client that runs under Cocoa?
  • Next by Date: Re: detect command key status
  • Previous by thread: Key View Loop does not work
  • Next by thread: Re: detect command key status
  • Index(es):
    • Date
    • Thread