<shortcut>

A shortcut is a keyboard shortcut that can perform a menu or window action.

Rendering expectations

The contents of the <shortcut> element is typically underlined.

Specialization hierarchy

The <shortcut> element is specialized from <keyword>. It is defined in the user-interface domain module.

Content model

(Text | <text> )*

Zero or more
  • Text
  • <text>

Attributes

The following attributes are available on this element: universal attributes and @keyref.

The following attributes are available on this element: universal attributes and the attributes defined below.

@keyref
Specifies a key name that acts as a redirectable reference based on a key definition within a map. See STUB CONTENT for information on using this attribute.

For HDITA, the equivalent of @keyref is @data-keyref

Example

This section is non-normative.

In the following code sample, the <shortcut> element identifies the keyboard shortcuts for navigating a menu to save a file:

<menucascade>
 <uicontrol><shortcut>F</shortcut>ile</uicontrol>
 <uicontrol><shortcut>S</shortcut>ave</uicontrol>
</menucascade>