HotKey.Unregister
-----------------

Unregisters a hotkey and frees resources.

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

MBS( "HotKey.Unregister"; HotKeyRef ) 

**MBS**( **"HotKey.Unregister";** /\* Unregisters a hotkey and frees resources. \*/  
**$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 OK or error.

### Description

Unregisters a hotkey and frees resources.  
### Examples

Unregister a hotkey:

 MBS ("Hotkey.Unregister"; HotKeys::HotKey ID)  
### See also

- [HotKey.Register](HotKeyRegister.md)
- [HotKey.UnregisterAll](HotKeyUnregisterAll.md)

### Release notes

- **Version 10.3**
    - Added [HotKey.UnregisterAll](https://www.mbsplugins.eu/HotKeyUnregisterAll.shtml) function.
    - Changed [HotKey.Unregister](https://www.mbsplugins.eu/HotKeyUnregister.shtml) function to take list of reference numbers.

### Example Databases

- [Win Only/Search Scripts](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Search%20Scripts.shtml#1ScriptAnchor_)
- [Win Only/Snippets for Windows](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Snippets%20for%20Windows.shtml#2ScriptAnchor_)
- [Window/Popover CardWindow](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/Popover%20CardWindow.shtml#2ScriptAnchor_)

### Blog Entries

- [What is new in the MBS FileMaker Plugin Version 10.3](https://www.mbsplugins.de/archive/2020-07-31/What_is_new_in_the_MBS_FileMak/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.3pr1](https://www.mbsplugins.de/archive/2020-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 4th February 2015 , last changed 4th February 2015

  
[HotKey.SetTag](HotKeySetTag.md) - [HotKey.UnregisterAll](HotKeyUnregisterAll.md)

[HTML Version](HotKeyUnregister.shtml)