• 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
Re: Shift-key state without an event?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shift-key state without an event?


  • Subject: Re: Shift-key state without an event?
  • From: j o a r <email@hidden>
  • Date: Fri, 2 Dec 2005 19:25:04 +0100


On 2 dec 2005, at 19.13, Manfred Schubert wrote:

How can I know the shift-key state without an event?

There's the Carbon way (Yuck!):

BOOL isShiftKeyPressed = ((GetCurrentKeyModifiers() & (1 << shiftKeyBit)) != 0);

Or, alternatively, how do I get hold of the current event?

NSEvent *currentEvent = [NSApp currentEvent];

j o a r


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
References: 
 >Shift-key state without an event? (From: Manfred Schubert <email@hidden>)

  • Prev by Date: Re: Shift-key state without an event?
  • Next by Date: Re: [OT] What happened to Stepstone?
  • Previous by thread: Re: Shift-key state without an event?
  • Next by thread: Disabling URL caching
  • Index(es):
    • Date
    • Thread