Re: Control key
Re: Control key
- Subject: Re: Control key
- From: Christopher Lloyd <email@hidden>
- Date: Sun, 01 Jul 2001 19:42:00 -0400
At 11:25 AM 7/1/2001 +0200, you wrote:
How do I detect if the control key is pressed at any point in my code,
without having access to an NSEvent? I want to do this in a method called
by a menu item...Do I have to resort to carbon?
[NSApp currentEvent] will return the most recent event, you can check the
keyboard flags there. I think this is the most relevant way to do what you
want.
Hope this helps,
Chris
References: | |
| >Control key (From: David Remahl <email@hidden>) |