• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How does Popup menu receive keyboard events?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How does Popup menu receive keyboard events?


  • Subject: How does Popup menu receive keyboard events?
  • From: eveningnick eveningnick <email@hidden>
  • Date: Thu, 7 Oct 2010 11:37:14 +0400

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]?
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

  • Follow-Ups:
    • Re: How does Popup menu receive keyboard events?
      • From: Raleigh Ledet <email@hidden>
  • Prev by Date: Re: what are the scenarios for an app to be terminated?
  • Next by Date: Re: what are the scenarios for an app to be terminated?
  • Previous by thread: Re: Documentation Hard Copy?
  • Next by thread: Re: How does Popup menu receive keyboard events?
  • Index(es):
    • Date
    • Thread