HotKey.GetKeyCode
-----------------

Returns the key code given at registration.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [HotKey](component_HotKey.md) | [5.2](newinversion52.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "HotKey.GetKeyCode"; HotKeyRef ) 

**MBS**( **"HotKey.GetKeyCode"** /\* Returns the key code given at registration. \*/  
**$HotKeyRef**) /\* The reference value for the hotkey as returned by [HotKey.Register](HotKeyRegister.md) function. e.g. $hotkey \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| HotKeyRef | The reference value for the hotkey as returned by [HotKey.Register](HotKeyRegister.md) function. | $hotkey |

### Result

Returns key or error.

### Description

Returns the key code given at registration.  
### See also

- [HotKey.GetKeyUp](HotKeyGetKeyUp.md)
- [HotKey.Register](HotKeyRegister.md)

This function is free to use.

Created 29th June 2015 , last changed 29th June 2015

  
[HotKey.GetIgnoreOnModal](HotKeyGetIgnoreOnModal.md) - [HotKey.GetKeyUp](HotKeyGetKeyUp.md)

[HTML Version](HotKeyGetKeyCode.shtml)