Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: key equivalents for popup menus



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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >key equivalents for popup menus (From: Howard Shere <email@hidden>)
 >Re: key equivalents for popup menus (From: Mike Abdullah <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.