Re: Shift-key state without an event?
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