Thread-topic: 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
I could hack around this if there was a way to block the menu from
closing when it thinks it's done.
From: Mike Kluev [mailto:email@hidden]
Sent: Wednesday, June 07, 2006 12:02 PM
To: Greg Minton
Subject: Re: Taking keystrokes from PopUpMenuSelect
On Tue, 6 Jun 2006 11:35:20, "Greg Minton" <email@hidden>
> I want to intercept keystrokes sent to a popup menu and shunt them
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.
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