Re: AXMenu stuff
Re: AXMenu stuff
- Subject: Re: AXMenu stuff
- From: Eric Schlegel <email@hidden>
- Date: Fri, 23 Apr 2004 14:56:09 -0700
On Apr 23, 2004, at 2:25 PM, David Weiss wrote:
I'm trying to understand the AXMenu stuff. Are my definitions below
accurate?
AXMenuItemCmdChar - The keyboard command character associated with a
particular menu item. For example: for paste cmd-v is the chord, so
AXMenuItemCmdChar should return v. For Help cmd-? is the chord so
AXMenuItemCmdChar should return '/' or should it return '?'
It should generally return what you see in the menu. If you see cmd-?
in the menu, then it should return '?'.
AXMenuItemCmdVirtualKey - Is this this virtual key code that defines
the location of the key on the keyboard?
Yes. Most menu items will not have this attribute; it's generally only
used for command key equivalents that can't be expressed as a character
code, such as a function key (F1, F2, etc).
Does this take into account localized keyboard layouts?
Depends on what you mean by that question. The virtual keycodes are
constant regardless of the specific keyboard mapping that's in use.
AXMenuItemCmdGlyph - The glyph that is next to a menu item. For cmd-v
it's the cmd symbol. For cmd-shift-n it's the cmd symbol. For ctl-c
its the ctl symbol.
Nope, the command, option, shift, control modifiers are not returned
here. This attribute, like the virtual key attribute, will only be
found on a minority of menu items. The values found in this attribute
are the glyph codes that are documented in HIToolbox/Menus.h. These
glyph codes are used, like the virtual keycodes, for command keys that
can't be expressed as a character code; for example, you might find
0x64 here to indicate kMenuLeftArrowGlyph.
AxMenuItemCmdModifiers - I have no clue. Is this anything but the
AXMenuItemCmdChar and the glyph directly next to AXMenuItemCmdChar??
Can
AxMenuItemCmdModifiers be an array of modifiers for complex chords?
(like cmd-opt-shift-v in Mail)?
This is a set of bits indicating the command/option/shift/control
modifiers associated with a menu item. The values returned here are
again found in HIToolbox/Menus.h: kMenuShiftModifier, etc.
AXMenuItemMarkChar - The checkbox or mark to the left of a menu item.
Correct.
AXMenuBar - The menu bar.
Correct.
-eric
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >AXMenu stuff (From: David Weiss <email@hidden>) |