![]() |
Modifier Key Mask Constants |
Header: Menus.h |
enum { kMenuNoModifiers = 0, kMenuShiftModifier = 1, kMenuOptionModifier = 2, kMenuControlModifier = 4, kMenuNoCommandModifier = 8 };
If no bit is set, only the Command key is used in the keyboard equivalent.
If this bit (bit 0) is set, the Shift key is used in the keyboard equivalent.
If this bit (bit 1) is set, the Option key is used in the keyboard equivalent.
If this bit (bit 2) is set, the Control key is used in the keyboard equivalent.
If this bit (bit 3) is set, the Command key is not used in the keyboard equivalent.
You can use one or more of these mask constants in the modifier keys field of the 'xmnu' resource to determine which modifier key(s) must be pressed along with a character key to create a keyboard equivalent for selecting a menu item. These constants are also passed in and obtained by SetMenuItemModifiers and GetMenuItemModifiers, respectively. Modifier key mask constants are available with Appearance Manager 1.0 and later.
© 2000 Apple Computer, Inc. (Last Updated 4/14/2000)