Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets the menu item shortcut.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Menubar 5.0 Yes No No No No
MBS( "Menubar.SetMenuCommandShortcut"; Path; Key; Modifiers )   More


Parameter Description Example value
Path The ID or path to the menu entry.
Use Menubar.ListMenuCommands to find out the IDs and names.
Key Which key to use. "D"
Modifiers Which modifiers to use. can include command, option, shift or control. "command shift"


Returns OK or error.


Sets the menu item shortcut.


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

Created 15th November 2014, last changed 15th November 2014

Menubar.RunMenuCommand   -   Menubar.SetMenuCommandTitle

Feedback: Report problem or ask question.

MBS Xojo tutorial videos