Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
HotKey.SetLocal
Sets the local flag.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
HotKey | 5.4 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "HotKey.SetLocal"; HotKeyRef; Local ) More
Parameters
Parameter | Description | Example |
---|---|---|
HotKeyRef | The reference value for the hotkey as returned by HotKey.Register function. | $hotkey |
Local | Set to 1 to only run hotkey if FileMaker is frontmost application. | 0 |
Result
Returns OK or error.
Description
Sets the local flag.Examples
Create hotkey and set local only:
Set Variable [$HotKeyID; Value:MBS("HotKey.Register"; "F5"; "shift control")]
Set Variable [$r; Value:MBS("HotKey.SetScript"; $HotKeyID; Get(FileName); "HotkeyAction")]
Set Variable [$r; Value:MBS("HotKey.SetLocal"; $HotKeyID; 1)]
See also
Release notes
- Version 11.5
- Changed implementation for HotKey functions for local hotkeys on macOS. Now hotkey set with HotKey.SetLocal to 1 will now process only within FileMaker and no longer block shortcuts in other applications.
Blog Entries
This function checks for a license.
Created 21st October 2015, last changed 21st October 2015
