Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
RE: Taking keystrokes from PopUpMenuSelect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Taking keystrokes from PopUpMenuSelect



Event handlers on control target and the menu don't catch keystrokes.
As far as I can tell, the spacebar sorts of keystroke events are put on
the event, but the raw keydown is pulled off without getting dispatched.
I assume keyboard accessibility routines somewhere are taking these
events?

I could hack around this if there was a way to block the menu from
closing when it thinks it's done.

Greg

-----Original Message-----
From: Mike Kluev [mailto:email@hidden]
Sent: Wednesday, June 07, 2006 12:02 PM
To: Greg Minton
Cc: carbon-dev
Subject: Re: Taking keystrokes from PopUpMenuSelect

On Tue, 6 Jun 2006 11:35:20, "Greg Minton" <email@hidden>
wrote:

> I want to intercept keystrokes sent to a popup menu and shunt them
> elsewhere.

Why? That would be non-standard behavior.

> Handlers installed on the application or event dispatcher get "normal"

> keystrokes, but miss the spacebar, which is taken as a close command
> to the menu.  Is there a way to get keystrokes (in particular, a
> space) before the menu loop processes them?  Alternately, can I pop up

> the (HIView) menu without PopUpMenuSelect?

The next thing I'd try is installing event handler on the control
target, and if that doesn't help - on the popup menu itself.

Mike

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Taking keystrokes from PopUpMenuSelect (From: "Greg Minton" <email@hidden>)
 >Re: Taking keystrokes from PopUpMenuSelect (From: Mike Kluev <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.