HotKey.List
-----------

Lists all hotkeys.

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

MBS( "HotKey.List" ) ### Parameters

none

### Result

Returns list or error.

### Description

Lists all hotkeys.  
Returns list with IDs for currently registered hotkeys.  
This helps debugging, especially finding scripts which do not release their objects properly.  
### Examples

Queries hotkeys:

 While(   
\[   
 names = "";   
 // query list of hotkeys  
 list = MBS ( "HotKey.List" );   
 count = ValueCount(list);   
 index = 1  
\] ;   
 index ≤ count ;   
\[   
 HotKeyRef = GetValue(list; index);   
 // query name of hotkey  
 name = MBS ( "[HotKey.GetName](HotKeyGetName.md)"; HotKeyRef );   
 names = names &amp; HotKeyRef &amp; " -&gt; " &amp; name &amp; ¶;   
 index = index + 1   
\] ;   
// return all the names  
names )  
<small>  
Example result: 35001 -&gt; test</small>### See also

- [HotKey.GetName](HotKeyGetName.md)

### Example Databases

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

This function is free to use.

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

  
[HotKey.GetTag](HotKeyGetTag.md) - [HotKey.Register](HotKeyRegister.md)

[HTML Version](HotKeyList.shtml)