Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Menubar.SetMenuCommandShortcut
Sets the menu item shortcut.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Menubar | 5.0 | Yes | No | No | No | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Path | The ID or path to the menu entry. Use Menubar.ListMenuCommands to find out the IDs and names. |
49297 |
| Key | Which key to use. | "D" |
| Modifiers | Which modifiers to use. can include command, option, shift or control. | "command shift" |
Result
Returns OK or error.
Description
Sets the menu item shortcut.Examples
Set Shortcut to "⌘⇧D" for the Data Viewer by ID:
MBS("Menubar.SetMenuCommandShortcut"; 49297; "D"; "shift command")
Set Shortcut to "⌘⇧D" for the Data Viewer by name in German:
MBS("FM.SetMenuCommandShortcut"; "Werkzeuge¶Datenanzeige"; "D"; "command shift")
See also
Blog Entries
Created 15th November 2014, last changed 15th November 2014
Menubar.RunMenuCommand - Menubar.SetMenuCommandTitle
Feedback: Report problem or ask question.
Links
MBS FileMaker blog