Re: triggering an NSMenuItem to speak as needed
Re: triggering an NSMenuItem to speak as needed
- Subject: Re: triggering an NSMenuItem to speak as needed
- From: Martin Wierschin <email@hidden>
- Date: Tue, 30 Sep 2008 20:48:13 -0700
NSMenuItem* item = whatever;
unsigned idx = [[item menu] indexOfItem:item];
[[item menu] performActionForItemAtIndex:idx];
-or-
[[item menu] performKeyEquivalent:fakedUniqueEvent];
But neither trigger VoiceOver, nor the visual highlighting in the
menu bar.
Both of those methods should trigger the appropriate accessibility
notification (kAXMenuItemSelectedNotification), but do not.
I've filed a bug on it, and have been trying to determine what
would be a workaround in the meantime.
Thanks James, if there's any work around I'd love to hear it.
~Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden