Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    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 )


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

Menubar.RunMenuCommand   -   Menubar.SetMenuCommandTitle

Feedback: Report problem or ask question.

MBS Xojo Plugins