Re: key equivalents for popup menus
Re: key equivalents for popup menus
- Subject: Re: key equivalents for popup menus
- From: Mike Abdullah <email@hidden>
- Date: Wed, 12 Apr 2006 14:19:56 +0100
Ah, I think I see what you mean. You're saying that the keyboard
shortcuts in your popup button work OK unless the first responder is
a text view. As I see it, there's two solutions:
1. Add equivalents for the popup button commands to the menu bar.
2. Subclass NSTextView (this seems like hard work!) to pass on the
keyboard events that your popup uses.
There might be another way, but off the top of my head I can't think
of it.
Mike.
On 12 Apr 2006, at 13:14PM, Howard Shere wrote:
On Apr 12, 2006, at 4:44 AM, Mike Abdullah wrote:
Adding command equivalents to a popup menu is easy. Doube-click
the popup in IB and select a menu item. Then use the inspector to
set a shortcut for it.
The popup menus have my command key equivalents in them already. I
think the problem is that the text view is eating my events.
I have a window with some popup menus in it and also a text view.
I would like the command key equivalents in my popup menus to
work, but I can't figure out what I need to do to make that
happen. Normal events are working fine (i.e., text gets into the
text view when I type) and command keys for the menus in the
menubar work...
Howard Shere
http://www.livejournal.com/users/realgreendragon/
Altair 8800a to Mac OS X so far...
_______________________________________________
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