({{, (RefLink[MenuCommandKey, paclet:ref/MenuCommandKey]) 
is an option for cells that specifies the keyboard shortcut to be associated with a style listed in the (MenuGrayLink[Format ▶ Style, paclet:ref/menuitem/Style]) submenu.}})

OpenersNotesSection(Spacer1)Details

Acceptable values include (RefLink[None, paclet:ref/None]) and "1" through "9". Style definitions with menu command keys also generally include a (RefLink[MenuSortingValue, paclet:ref/MenuSortingValue]) to determine the location of the style in the (MenuGrayLink[Format ▶ Style, paclet:ref/menuitem/Style]) submenu.

This option is typically specified in the style definition cell of a stylesheet.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Create a style definition for the cell style "MyTitle", which can be accessed by choosing (MenuGrayLink[Format, paclet:guide/FormatMenu]) ▶ (MenuGrayLink[Style, paclet:ref/menuitem/Style]) ▶ MyTitle or pressing (Key1[MacOSXcmdAlt, 1]), and reformat the cell:

NotebookWrite[EvaluationNotebook[],Cell[StyleData["MyTitle"],CellMargins->{{27,Inherited},{10,30}},MenuSortingValue->1100,MenuCommandKey->"1",FontFamily->"Helvetica",FontSize->36,FontWeight->"Bold",FontColor->RGBColor[1,0,0]]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[MenuSortingValue, paclet:ref/MenuSortingValue])  ▪  (RefLink[StyleData, paclet:ref/StyleData])}})}})