command-period doesn't close NSComboBox popup window
command-period doesn't close NSComboBox popup window
- Subject: command-period doesn't close NSComboBox popup window
- From: "email@hidden" <email@hidden>
- Date: Thu, 8 May 2008 17:06:25 -0700
by subclassing NSComboBox and providing a subclass of NSTextView as
its field editor, i am able to support the home/end/page down/page up
keys in the popped up window. (i'm surprised this isn't the default
behavior!)
however, i haven't been able to figure out how to support
command-period (to be equivalent to the escape key and i'm even more
surprised that this doesn't "just work").
any suggestions?
ken
ps to avoid any/lots of requests for code, here is what i do. my
field editor overrides/provides methods for scrollPageDown,
scrollPageUp, scrollToEndOfDocument, scrollToBeginningOfDocument and
passes this on to its delegate--my NSComboBox subclass. MyComboBox
keeps track of whether or not the popup window (by using the
appropriate notifications) is up, and if so acts accordingly. all
very straight-forward.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden