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.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

Menubar.SetMenuCommandShortcut

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 )

Parameters

Parameter Description Example value
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


Menubar.RunMenuCommand   -   Menubar.SetMenuCommandTitle

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins