Re: How does Popup menu receive keyboard events?
Re: How does Popup menu receive keyboard events?
- Subject: Re: How does Popup menu receive keyboard events?
- From: Raleigh Ledet <email@hidden>
- Date: Thu, 7 Oct 2010 09:36:21 -0700
On Oct 7, 2010, at 12:37 AM, eveningnick eveningnick wrote:
> Hello
> I have some application active (for example, finder) and its window is
> a keyWindow that receives keyboard events
> After i click on a "free from windows" part of a desktop with right
> mouse button, i have a popup menu dropped down, and somehow this menu
> now gets keyboard events (for example, when i press up, and down keys,
> the menu cursor moves up and down). The Finder application is still
> active, and i presume its window is still key window. But desktop menu
> - it is a different process, a different application and a different
> window. How come it receives keyDowns and how come Finder doesn't
> receive them anymore, unless i click on Finder's window with left
> mouse button?
> What is the mechanism that is used and what is the route the key
> events go till they reach that menu? I was trying to find out this
> info in event programming guide, but without any luck :(
> Do i correctly understand that popup menu is an ordinary cocoa window,
> which is only made topmost by calling
> [setLevel:NSPopupMenuWindowLevel]?
No, that is not completely correct. How the popup menu works is a private implementation detail. I understand that you want to have two windows with the key look at the same time. This is not something that is supported in AppKit at this time. Please file a radar.
-raleigh
> Thanks!
> _______________________________________________
>
> 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
_______________________________________________
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