Menu item key equivalents
Menu item key equivalents
- Subject: Menu item key equivalents
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 03 May 2004 09:24:58 -0400
Can somebody explain the numbers that are returned by the several
menu-related accessibility attributes? I've figured out the following so
far, but I'm stuck. Is there a document that explains them?
AXMenuItemCmdModifiers - The modifier key combination is a number
representing a particular combination of modifier keys, namely the Modifier
Key Mask as documented in the Carbon Menu Manager. The number is based on a
4-bit bit field where bit 0 is the Shift key, bit 1 is the Option key, bit 2
is the Control key, and bit 3 means the Command key is not required,
counting from the least-significant bit. The Command key is assumed (unless
bit 3 is set) and not included in the number. Thus, for example, the number
0 means the Command key is required; 1, Command-Shift; 2, Command-Option; 3,
Command-Shift-Option; 4, Command-Control; and so on.
AXMenuItemCmdGlyph - These are apparently glyph codes as described in the
Carbon Menu Manager. However, I don't know where they are documented or how
to interpret them. They are supposedly documented under the 'xmnu' resource,
but I haven't been able to find the documentation for it in the Resource
Manager documentation in the time available. For example, from
experimentation, the number for the left arrow is 100; right arrow, 101; up
arrow, 104; down arrow, 106; delete (backspace), 23. Where do they come from
and what do they signify? If they are glyphs numbered in the .Keyboard font,
where is it and how do I read it?
AXMenuItemCmdVirtualKey - I can't find any applications with command-key
equivalents having this attribute. What is it? From the Mac OS X 10.2.5 and
10.3 release notes, I'm guessing that these are the standard
hardware-independent keycode numbers. I'm also guessing that the reason why
I can't find applications that generate this attribute is that most
developers haven't yet caught up with the fact that this is (apparently) now
the preferred way to implement keyboard shortcuts since Mac OS X 10.2.5.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.