MenuItem.GetKeyEquivalent
-------------------------

Returns the menuitem's unmodified keyboard equivalent.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Menu](component_Menu.md) | [4.1](newinversion41.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "MenuItem.GetKeyEquivalent"; Item ) 

**MBS**( **"MenuItem.GetKeyEquivalent";** /\* Returns the menuitem's unmodified keyboard equivalent. \*/  
**$Item**) /\* The reference to the menu item. Please create one with [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md) or [MenuItem.CreateSeparator](MenuItemCreateSeparator.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Item | The reference to the menu item. Please create one with [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md) or [MenuItem.CreateSeparator](MenuItemCreateSeparator.md). | $item |

### Result

Returns text or error.

### Description

Returns the menuitem's unmodified keyboard equivalent.  
The menuitem's unmodified keyboard equivalent, or the empty string if one hasn't been defined.  
Use [MenuItem.GetKeyEquivalentModifierMask](MenuItemGetKeyEquivalentModifierMask.md) to determine the modifier mask for the key equivalent.  
See also [MenuItem.SetKeyEquivalent](MenuItemSetKeyEquivalent.md).  
### See also

- [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md)
- [MenuItem.CreateSeparator](MenuItemCreateSeparator.md)
- [MenuItem.GetKeyEquivalentModifierMask](MenuItemGetKeyEquivalentModifierMask.md)
- [MenuItem.GetUserKeyEquivalent](MenuItemGetUserKeyEquivalent.md)
- [MenuItem.SetKeyEquivalent](MenuItemSetKeyEquivalent.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[MenuItem.GetItalic](MenuItemGetItalic.md) - [MenuItem.GetKeyEquivalentModifierMask](MenuItemGetKeyEquivalentModifierMask.md)

[HTML Version](MenuItemGetKeyEquivalent.shtml)