shortcut

shortcut — A key combination for an action that is also accessible through a menu.

Synopsis

Attributes

Common attributes and common linking attributes.

Additional attributes:

  • Exactly one of:
    • action (enumeration)
      • “click”
      • “double-click”
      • “press”
      • “seq”
      • “simul”
    • Each of:
      • action (enumeration)
        • “other”
      • otheraction

Required attributes are shown in bold.

Description

A shortcut contains the key combination that is a shortcut for a menuchoice. Users who are familiar with the shortcuts can access the functionality of the corresponding menu choice, without navigating through the menu structure to find the right menu item.

Processing expectations

Formatted inline.

Attributes

Common attributes and common linking attributes.

action

Identifies the nature of the action taken. If keycombo contains more than one element, simul is the default, otherwise there is no default.

Enumerated values:
“click”

A (single) mouse click.

“double-click”

A double mouse click.

“press”

A mouse or key press.

“seq”

Sequential clicks or presses.

“simul”

Simultaneous clicks or presses.

action

Identifies the nature of the action taken

Enumerated values:
“other”

Indicates a non-standard action

otheraction

Identifies the non-standard action in some unspecified way.

Parents [+]

This element occurs in 51 elements.

Children

The following elements occur in shortcut: keycap, keycombo, keysym, mousebutton.

Examples

  1 <article xmlns='http://docbook.org/ns/docbook'>
  2 <title>Example shortcut</title>
    
  4 <para>You can exit from GNU Emacs with 
    <menuchoice>
  6   <shortcut>
        <keycombo><keysym>C-x</keysym><keysym>C-c</keysym></keycombo>
  8   </shortcut>
      <guimenu>Files</guimenu>
 10   <guimenuitem>Exit Emacs</guimenuitem>
    </menuchoice>.
 12 </para>
    
 14 </article>

You can exit from GNU Emacs with

.

Last revised by Norman Walsh on 6 Jun 2011 (git hash: 6ffcc7640bbc5f852a318e452c9f210f03292cb9)